#include<stdio.h>
#include<stdlib.h>
int main ()
{
int ch = 0;
whlile((ch = getchar()!=EOF) //while 循环中用EOF作为文件结束的标志,且必须是文本文件
{
if(ch>=‘a' && ch<='z')
’putchar(ch-32); //(ch-'a'-'A') 小写字符与大写字符间Ascll码值相差32
if(ch>= 'A' && ch<='Z')
putchar(ch+32);
}
system ("pause\n");
return 0;
}