64,637
社区成员
发帖
与我相关
我的任务
分享
]#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
string str="JIuyIUhjkHUY";
transform(str.begin(),str.end(),str.begin(),tolower);
cout<<str;
return 0;
}
#include <cctype>
void IniReader::string_lower(string& str)
{
for (string::size_type i=0; i!=str.size();++i)
{
str[i] = tolower(str[i]);
}
}