#include <iostream> using namespace std; int main() { char c1 = 'B' + 32; char c2 = '5' - '0'; cout << c1 << "," << c2 << endl; return 0; }
已知ASCII码规则:大写字母'A'编码为65,小写字母'a'编码为97,数字字符'0'编码为48。
b,5
B,5
b,53
66,5