1
2
3
4
5
6
7
8
9
10
11
12
#include<iostream>
using namespace std;
int main()
{
char ch;
cout< <"请输入1个字母(大写)\n";
cin>>ch;
ch=(ch>=’A’&&ch< =’Z’)?(ch+32):ch;
cout<<"转换为:\n"<<ch<<endl;
system("pause");
return 0;
}