#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include<cctype>
using namespace std;
int main()
{
char ch;
cout << "Enter something(@ to quit):\n";
while ((ch = cin.get()) !='@')
{
if (isupper(ch))
{
ch = tolower(ch);
cout << ch;
}
else if (islower(ch))
{
ch = toupper(ch);
cout << ch;
}
else
cout << ch;
}
return 0;
}
C++ primer plus第六版课后编程练习答案:6.1
最新推荐文章于 2016-10-06 13:17:54 发布