哪位大侠帮个忙啊!感激!!!
#include<stdio.h>#define MAX 80
void main()
{
int i=0;
char str[MAX],*p;
printf("请输入文本行:\n");
scanf("%s",str);
p=str;
while(str[i]!='\0')
{
#if ((str[i]>='a'&&str[i]<'z')||(str[i]>='A'&&str[i]<'Z'))/*提示本处有错*/
{
str[i]+=1;
i++;
}
#else
if(str[i]=='z'||str[i]=='Z')
{
str[i]-=25;
i++;
}
#endif
}
p=str;
printf("%s",p);
}
错误信息为
Compiling...
2.c
F:\6\2.c(12) : fatal error C1012: unmatched parenthesis : missing ')'
Error executing cl.exe.
2.exe - 1 error(s), 0 warning(s)