1. 数据类型——char类型
2.代码实践
# include "iostream"
# include "windows.h"
using namespace std;
int main()
{
SetConsoleOutputCP(CP_UTF8);
char ch = 97;
cout << ch << endl;
char ch2 = 'a';
cout << ch2 + 1 << endl;
char ch3 = 'a' + 2;
cout << ch3 << endl;
return 0;
}
输出结果