#include <string>
use namespace std;
string str;
transform(str.begin(), str.end(), str.begin(), ::tolower);
transform(str.begin(), str.end(), str.begin(), ::toupper);
#include <string>
use namespace std;
string str;
transform(str.begin(), str.end(), str.begin(), ::tolower);
transform(str.begin(), str.end(), str.begin(), ::toupper);
转载于:https://www.cnblogs.com/4rock/archive/2009/06/30/2380151.html