【6.1】c++ primer plus 课后编程答案

来源:互联网 发布:java 读取txt 编辑:程序博客网 时间:2024/06/05 09:58

C++ PRIMER PLUS 课后答案 
使用IDE为window7系统下的VS2010

#include <iostream>#include <Windows.h>#include <cctype>using namespace std;int main(){  char ch;  while((ch=cin.get())!='@')  {    if(isdigit(ch)){    continue;    }    else     {      if(isupper(ch))      ch=tolower(ch);      cout<<ch;    }  }  system("pause");
  return 0;}