有函数
查看原帖
有函数
1438099
__Fu楼主2024/9/1 17:04
#include <iostream>
#include <string>
#include <locale>
using namespace std;
int main(){
    string str;
    cin>>str;
    locale loc;
    for (string::size_type i = 0; i < str.length(); ++i)
        cout << toupper(str[i], loc);
    return 0;}
2024/9/1 17:04
加载中...