标签:div -- nbsp pre color std clu int gets
1 #include<stdio.h> 2 char s[105]; 3 int main() 4 { 5 int n; 6 scanf("%d",&n); 7 getchar(); 8 while(n--) 9 { 10 gets(s); 11 for(int i=0; s[i]; ++i) 12 if(s[i]>=‘a‘ && s[i]<=‘z‘) 13 putchar(s[i]-32); 14 else 15 putchar(s[i]+32); 16 printf("\n"); 17 } 18 }
标签:div -- nbsp pre color std clu int gets
原文地址:http://www.cnblogs.com/qq188380780/p/6336826.html