C++ 字符 ASCII 码转换:将整数转换为字符
#include <iostream>
using namespace std;
int main() {
int ascii;
cin >> ascii;
char ch = static_cast<char>(ascii);
cout << ch << endl;
return 0;
}
原文地址: https://www.cveoy.top/t/topic/uQo 著作权归作者所有。请勿转载和采集!