字符串全变大/小写

string s;
transform(s.begin(),s.end(),s.begin(),::tolower/::toupper);

posted on 2025-03-15 09:38  下头小美  阅读(7)  评论(0)    收藏  举报