c++ how to convert a char to an int code example
Example 1: converting char to integer c++
int x = '9' - 48;
// x now equals 9 as an integer
Example 2: C++ int to char*
std::string s = std::to_string(number);
char const *pchar = s.c_str(); //use char const* as target type