小知识点~

1.转换为小写字母
str="qwer";
transform(str.begin(),str.end(),str.begin(),::tolower);
cout<<"转化为小写后为:"<<str<<endl;
transform(str.begin(),str.end(),str.begin(),::toupper);
cout<<"转化为大写后为:"<<str<<endl;
原文地址:https://www.cnblogs.com/zhying99/p/10686241.html