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;
2024-02-26 11:01:28
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;