C++实现字母大小写转换
#include <iostream>

int main() {
    char word;
    std::cout << "请输入您的 char:>>>";
    std::cin >> word;
    std::cout << "您的 Word:>>>" << word << std::endl;
    int a = word;
    char pre_word = a - 1;

AndersonHJB原创
  • c++
  • c++
大约 1 分钟