已采纳 陆麟瑞 资深天翼 判断: if(int(c)>=65&&int(c)<=90) cout<<int(c)-64; else if(int(c)>=97&&int(c)<=122) cout<<int(c)-96; else cout<<c;