#CH014. 字符与ASCII码

    ID: 240 Type: Objective Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>信息学奥赛导学(C++语言基础入门)

字符与ASCII码

阅读程序,填写对应的输出结果

cout << 'A' << ' ' << 'B' << ' ' << 'C' << endl;

{{ input(1) }}

cout << 'a' + 0 << endl;

{{ input(2) }}

cout << ' ' + 0 << endl;

{{ input(3) }}

cout << 'A' + 0 << endl;

{{ input(4) }}

cout << '0' + 0 << endl;

{{ input(5) }}

cout << 'a' - 'A' << endl;

{{ input(6) }}

cout << 'Y' - 'y' << endl;

{{ input(7) }}

cout << 'a' - ' ' << endl;

{{ input(8) }}

cout << '6' - '0' << endl;

{{ input(9) }}

cout << 2 + '0' << endl;

{{ input(10) }}