I have a vector full of decimal values and I want to convert each element of the vector to ASCII represented strings (or char arrays). How do I do this? Each element of the array is 8 hex bits long and has been converted to it's decimal representation. So...
HEX(41424344) = DEC(1094861636) = ASCII('A','B','C','D')
I have the HEX to DEC part down fine but I can't quite figure out how to do the second part. I've tried using reinterpret_cast with many issues. Any simple solutions to this problem?
I feel like I can't make a conversion from my DEC stage to ASCII correctly because its bits 0 and 1 of the HEX that give char(0) and so on. With the dec representation there isn't a straightforward conversion is there?