iterator

#include <iostream>
#include <vector>
#include <string>
using namespace std;
using std::_Adjust_manually_vector_aligned;
int main()
{
vector<string> str;
string s;
cin >> s;
auto it = s.begin();
while (it != s.end())
{
*it = toupper(*it); //全部转化为大写
++it;
}
cout << s << endl;
return 0;
}

posted @ 2019-07-15 10:08  MoonXu  阅读(299)  评论(0编辑  收藏  举报