您的位置:首页 > 编程语言 > C语言/C++

编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习1

2013-11-30 23:39 337 查看
#include <iostream>
#include <cctype>
using namespace std;
int main()
{
char ch;
while((ch=cin.get())!='@')
{
if(isdigit(ch))
continue;
else if(islower(ch))
ch-='z'-'Z';
else if(isupper(ch))
ch+='z'-'Z';
cout<<ch;
}
system("pause");
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐