#include<stdio.h>
int main()
{
char c1;
c1=getchar();
if(c1<60);
{c1=c1+32;
putchar(c1);}
else
{
c1=c1-32;
putchar(c1);
}
return 0;
}
希望C1能以变换大小写的加密形式输出,但是一直报错为
C:\Users\Administrator\Desktop\VC6\VC6\MyProjects\第四次作业\037_4.cpp(12) : warning C4390: ';' : empty controlled statement found; is this the intent?
求大神指导啊!!!
int main()
{
char c1;
c1=getchar();
if(c1<60);
{c1=c1+32;
putchar(c1);}
else
{
c1=c1-32;
putchar(c1);
}
return 0;
}
希望C1能以变换大小写的加密形式输出,但是一直报错为
C:\Users\Administrator\Desktop\VC6\VC6\MyProjects\第四次作业\037_4.cpp(12) : warning C4390: ';' : empty controlled statement found; is this the intent?
求大神指导啊!!!





