将字符串中的小写字母转换成大写字母
-
总时间限制:
- 1000ms 内存限制:
- 65536kB
-
描述
-
给定一个字符串,将其中所有的小写字母转换成大写字母。
输入
- 输入一行,包含一个字符串(长度不超过100,可能包含空格)。 输出
- 输出转换后的字符串。 样例输入
-
helloworld123Ha
样例输出
-
HELLOWORLD123HA
//noi_8175
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<iomanip>
#include<ctype.h>
using namespace std;
int main(){
string s;
getline(cin,s);
for(int i=0;i<s.length();i++){
s[i]=toupper(s[i]);
}
cout<<s;
//freopen("t1.in","r",stdin);
//freopen("ti.out","w",stdout);
//cout<<fixed<<setprecision(2)<<;
return 0;
}