Wednesday, May 15, 2013

C++ Program Convert a Character into the ASCII Format

2:09 PM


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

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top