string数组大小写转换
#include<algorithm>
vector<string> lowerCase(n);//n为string数组大小
for (int i = 0; i < n; i++)
{
transform(str[i].begin(), str[i].end(), str[i].begin(),tolower);
cout << str[i] << endl;
lowerCase.push_back(str[i]);
}
string数组大小写转换
#include<algorithm>
vector<string> lowerCase(n);//n为string数组大小
for (int i = 0; i < n; i++)
{
transform(str[i].begin(), str[i].end(), str[i].begin(),tolower);
cout << str[i] << endl;
lowerCase.push_back(str[i]);
}