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;
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;