P5733 【深基6.例1】自动修正
题目传送门
#include
using namespace std;
int main() {
string s;
cin >> s;
//方法1:STL大法
//transform(s.begin(), s.end(), s.begin(), ::toupper);
//printf("%s\n", s.c_str());
//方法2:该个char进行转换输出
for (int i = 0; i < s.size(); i++)
printf("%c", toupper(s[i]));
return 0;
}