How to convert int to char - C++ Forum - cplusplus.com - The C++ Resources Network
from the output we can see that the way that casting (char)num works is the same way as logicaly AND the int with only the first 8 bits. what I dont understand in your code is m_pRes and itoa, what you need em for? just use casting...