![]() |
#2
yangfrancis2016-06-11 16:09
|
//ch6-1 keybrod input code_1
#include<iostream>
#include<cctype>
#include<string>
int main()
{
using namespace std;
cout<<"Enter the text for transform: ";
char ch;
cin.get(ch);
while(ch !='@')
{
if(ch=tolower(ch))
cout<<ch;
else if(ch=toupper(ch)) //----为什么不执行呢?
cout<<ch;
cin.get(ch);
}
//cout<<a<<" and "<<b<<" and "<<c;
system("pause");
return 0;
}