I am taking a beginning C++ class, and would like to convert letters between hex representations and binary. I can manage to print out the hex numbers using:
For bit of variety, you can also do it using a 16 element look up table.