//
01 头文件 #include<algorithm>
02 第四个参数注意 "::" 且不带 "()"
03 非字母字符不变 字母字符按要求转换
04 无法在 函数内部 将转换后的字符串 拷贝 至另一个字符串
//
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s1="abc_ABC";
string s2(s1); // 通过副本拷贝
transform( s1.begin(),s1.end(),s1.begin(),::tolower );
cout<<s1<<endl;
transform( s2.begin(),s2.end(),s2.begin(),::toupper );
cout<<s2<<endl;
swap( s1,s2 );
cout<<s1<<' '<<s2<<endl;
return 0;
}