第1个回答 2012-12-05
#include <stdio.h>
#include <ctype.h>
int main()
{
int i=0,j=0;
int system(char *command);
char array[100];
printf("输入字符串:");
scanf("%s",array);
for (;array[i]!='\0';i++)
{
array[i]= toupper(array[i]);
}
printf("字符串完全大写:%s\n",array);
for (;array[j]!='\0';j++)
{
array[j]=tolower(array[j]);
}
printf("字符串完全小写:%s\n",array);
system("pause");
return 0;
}