function that turns char into int in X 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;