http://stackoverflow.com/questions/5029840/convert-char-to-int-in-c-and-c


1
2
char a = '4';
int ia = a - '0';
cs


'C++' 카테고리의 다른 글

enum to string  (0) 2017.08.03
winapi image button  (0) 2017.08.01
rand  (0) 2017.02.20
int to string, int to char*  (0) 2016.12.02
cppcheck  (0) 2016.10.25

+ Recent posts