楼上正解
多报错大隐掘滚核了
syntax error : missing ')' before '携前{'
语法错误:在{前缺少)
#include "stdio.h"
#include "ctype.h"
main(){
char a[100];int i=0;
printf("please input the sentence:");
scanf("%s"带铅,a);
while(a[i]!='\0'){
if(isalpha(a[i])) {
if('a'<=tolower(a[i])&&tolower(a[i])<'x') a[i]=a[i]+3;
else a[i]=a[i]-29;}
}
printf("%s",a);
}/蠢纯好/你在第八裤裤行丢掉了“)”
if(isalpha(a[i]) ){
这里差个括号啊