[C++Primer]練習3.17

465 ワード

#include 
#include 

using std::vector;
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main() {
    vector words;
    string temp;
    while (cin >> temp) {
        words.push_back(temp);
    }
    for (auto &s:words) {
        for (auto &c:s) {
            c = toupper(c);
        }
        cout << s << endl;
    }
    return 0;
}