第二章知识已更新完毕
下一次就开启第三章了哦
今天依旧上代码
#include "stdafx.h"
#include<iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char n, m,p;
cout << "请输入您想转换的小写字母" << endl;
cin >> n;
if (n >= 'a' && n <= 'z')
{
p =(int)(n+32);
cout << "该字母的大写形式为" <<(char)p << endl;
}
else
cout << "您输入的字母不符合要求" << endl;
cin.get();
cin.get();
return 0;
}
要努力吖!!!
Be grateful and be gentle when you meet.
心存感激,所遇皆温柔。