字母转化
#include<iostream.h>#include<conio.h>
void main()
{
char ch;
cin>>ch;
if((ch<='z')&&(ch>='a'))
{
ch=ch-32;
cout<<ch<<endl;
}
else
{
if((ch<='Z')&&(ch>='A'))
{
ch=ch+32;
cout<<ch<<endl;
}
else
{
cout<<ch<<endl;
}
}
getch();
}
2012-11-12 20:09
2012-11-12 21:14
2012-11-12 22:42