PDA

View Full Version : ASCI problem in creator 3.5.1



Pingusplus
9th April 2016, 22:34
Hello
i use Qt Creator 3.6.1 Based on Qt 5.6.0 (MSVC 2013, 32 bit) Built on Mar 14 2016 09:57:09 and i like know how to get the ASCII code from a char i find on internet some solution but they dont work for me? How conwent ASCII code back to char?

anda_skoa
10th April 2016, 09:22
You just interpret the char value as an integer, e.g. by assigning to an int.

Not really related to Qt or QtCreator, a char is a basic C/C++ type.

Cheers,
_