有人可以解释为什么这有效吗?
char c = '9'; int x = (int)(c - '0');
为什么从char的ascii代码中减去'0'会导致char表示的数字?
c c++
c ×1
c++ ×1