65,209
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <cctype>
#include <string>
#include <iterator>
#include <algorithm>
// using namespace std;
int main()
{
std::string s("ni hao");
std::cout << s <<std::endl;
std::transform(s.begin(), s.end(), s.begin(), toupper);
std::cout << s <<std::endl;
return 0;
}