#include
#include
int main(void)
{
char acWords[1024];
char cWord;
int i, iSize;
printf("%s\n", "请输入需要大小写转换的一串字母:");
scanf("%s", acWords);
iSize = strlen(acWords);
for(i=0; i{
cWord = acWords[i];
if (cWord >= 65 && cWord <= 90)
acWords[i] += 32;
if (cWord >= 97 && cWord <= 122)
acWords[i] -= 32;
}
printf("转换过的字母为:\n%s\n", acWords);
system("pause");
return 0;
}