c++ convert character to integer using ASCII
// C, with C type-casting char cMyCharacter = 'A'; int iMyAsciiValue = (int)cMyCharacter; // C++, with C++ type-casting char cMyCharacter = 'A'; int iMyAsciiValue = static_cast<int>(cMyCharacter);
-----------------------------------------
convert character to Ascii in C++
c++ convert character to integer using ASCII
Turning int into an ASCII character
Convert scanned characters from input file to ascii