以下程序通过测试. 有问题请追问!#include void main() { char s[30]; scanf("%s",s); char *p=s; while(*p) { if(*p>='a'&&*p<='z') { *p-=32; } else if(*p>='A'&&*p<='Z') { *p+=32; }
← 上一条:输入一个字符串,将其中的大写字母转换为小写字 下一条:电镐大小型号有哪几种 →