#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{
string t;
vector<string> text;
//这里你输入的时候可能会永远循环其实只是方法不对
//如果是Windows系统下的话先按回车再按CtrL+Z组合键就能完成输入
while (getline(cin,t))
text.push_back(t);
/*个人觉得这里比较难理解,为什么要循环嵌套呢?因为第一次循环
嵌套时text.begin()返回给t的不是能够进行替换操作的类型而是一个
迭代器,当第二次进行循环时返回的是每一个字符串,用这些字符串
就可以进行对小写字母的替换操作了*/
for (auto t = text.begin(); t != text.end() && !t->empty(); t++)
{
for (auto t2 = t->begin(); t2 != t->end(); t2++)
*t2 = toupper(*t2);
cout << *t << endl;
}
return 0;
}