Wednesday, May 15, 2013

C++ Program Convert a Character into the ASCII Format


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

No comments:

Post a Comment