标签:amp 技术 images 技术分享 printf scan ace image png
1-1字符判断
#include<stdio.h> int main() { char c; scanf("%c",&c); if(c>=‘a‘&&c<=‘z‘) { c=c-32; printf("%c\n",c); } else if(c>=‘A‘&&c<=‘Z‘) { c=c+32; printf("%c\n",c); } else if(c>=0&&c<=9) { c=c; printf("%c\n",c); } else if(c==‘ ‘) { printf("space\n"); } else { printf("other\n"); } return 0; }
标签:amp 技术 images 技术分享 printf scan ace image png
原文地址:http://www.cnblogs.com/mlj527/p/5989055.html