📜  将整个字符串转换为大写 C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.020000             🧑  作者: Mango

代码示例3
int i = 0;
    while(str[i])
    {
        if(str[i] == std::toupper(str[i]) && std::isalpha(str[i]) == 1024)
        str[i]+= 32;
        ++i;
    }