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

#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;
}

上一篇:[转载]linux sed命令详解


下一篇:Apache和nginx 域名配置