#include "stdafx.h"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string s1;
cout << "输入一组词:";
vector<string> v1;
while (cin >> s1) //ctrl+z控制终止
{
v1.push_back(s1);
}
for (auto &c : v1)
{
for (int i = 0; i < c.size(); i++)
{
c[i] = toupper(c[i]);
}
}
for (auto c : v1)
{
cout << c << endl;
}
return 0;
}