#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
vector<string> strVec;
string str;
while (cin >> str) {
strVec.push_back(str);
for (auto &a : strVec) {
for (auto &b : a)
b = toupper(b);
}
if (getchar() == '\n' && !str.empty())
break;
}
for (auto a : strVec)
cout << a << ' ';
return 0;
}
C++Primer 3.3.3 练习3.17 关于while的换行结束
最新推荐文章于 2024-09-27 16:16:48 发布