#include <iostream>
#include <string>
#include <cctype>
#include <algorithm>
using namespace std;
int main()
{string s = "Hello World";
cout << s << endl;
transform(s.begin(),s.end(),s.begin(),::toupper);
cout << s << endl;
transform(s.begin(),s.end(),s.begin(),::tolower);
transform大小写转化
最新推荐文章于 2023-12-26 11:08:48 发布