std::string转换大小写

#include <algorithm>
#include <string>

std::string str = "Hello World";
std::transform(str.begin(), str.end(), str.begin(), ::toupper);
原文地址:https://www.cnblogs.com/chenkkkabc/p/3118712.html