#includevoid main(){ char m; printf("请输入你要转换的字符:"); scanf("%c",&m); m=m^32; printf("%c",m);}解释一下,大写字母就小写就是+32,小写字母变大写就是-32,我这里采用了与32进行异域就达到了效果。