translateA2a.cpp

#include <iostream>
#include <algorithm>	//必需

using namespace std;

int main()
{
    string str;
    cin >> str;
    int len = str.length();
    transform(str.begin(), str.end(), str.begin(), ::tolower);//将字符串全部转换为大写字母
    // ::tolower转换为小写字母//toupper换为大写字母
    cout << str;
    return 0;
}

 

posted @ 2022-09-11 16:22  PanDai  阅读(8)  评论(0)    收藏  举报