标签:
#include<iostream> #include<cstdio> #include<cstring> using namespace std; char s[50]; int main() { int i,len; while(~scanf("%s",s)) { len=strlen(s); for(i=0;i<len;i++) { if(s[i]>=‘a‘&&s[i]<=‘z‘) s[i]=s[i]-32; else s[i]=s[i]+32; } printf("%s\n",s); } return 0; }
标签:
原文地址:http://www.cnblogs.com/cancangood/p/4354407.html