std::string转换大小写

#include <algorithm>
#include <string>

std::string str = "Hello World";
std::transform(str.begin(), str.end(), str.begin(), ::toupper);

 

posted on 2013-06-05 12:40  chenkkkabc  阅读(335)  评论(0编辑  收藏  举报