Hello,
I'm working on a problem (Huffman Tree encoding/decoding) and I need to covert and Int to a char.
I was trying to use
char temp = static_cast <char> (index); //index is an integer
it compiles but if I try to print, it crashes so obviously that idea doesn't work (or at least I am doing it wrong lol)
I know about the itoa function but we are not allowed to use it as it will not work with cygwin.
Thanks