58,454
社区成员
发帖
与我相关
我的任务
分享
#include <string>
#include <iostream>
#include <cctype>
using namespace std;
using std::string;
int main(int argc, char const *argv[])
{
string s1("hello,world!");
for(auto &a:s1){
a=toupper(a);
}
cout << s1 << endl;
return 0;
}