📜  如何在 C++ 代码示例中将 char 转换为 int

📅  最后修改于: 2022-03-11 14:44:49.685000             🧑  作者: Mango

代码示例5
int x  = '9' - 48;//converts '9' to 9 as an int