I\'m trying to convert a hex number to a character in C++. I looked it up but I can\'t find an answer that works for me.
Here is my code:
char mod_tostr
Try this:
std::cout << "0x%02hX" << Base[0] << std::endl;
Output should be: 0x5B assuming Base[0] is 0000005B.