convert 2 character to int c++ code example
Example 1: char to int c++
int x = (int)character - 48;
Example 2: c char to int
int i;
char c = 'A';
i = (int)c;
int x = (int)character - 48;
int i;
char c = 'A';
i = (int)c;