输字符,是小写,换大写输出。是大写,按小写输出
#include int main( )
{
char c,c1;
scanf("%c",&c);
if((c>='a')&&(c<='z'))
c1=c-32;
printf("c1=%c\n",c1);
else
if((c>='A')&&(c<='Z'))
c1=c+32;
printf("c1=%c\n",c1);
return 0;
[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名2.cpp:9: error: expected `;' before "else"
[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名2.cpp:9: error: expected primary-expression before "els