📜  c++代码示例中的char到int

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

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