#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main() {
    vector<string> x;
    string s1;
    while (cin >> s1) {

        for (auto i = 0; i < s1.size();++i) {  //设置一个变量i,类型与s1的宽度类型一致
            s1[i] =  toupper(s1[i]);  //s1的下标(i)被赋值为s1(下标)内容的大写格式
            x.push_back(s1);  //切记,这里x和s1都无需下标
        }
        for(string i2:x)
            cout << i2 << endl;
    }
    return 0;
}
最后修改:2022 年 12 月 05 日
如果觉得我的文章对你有用,请随意赞赏