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(char c = 'a'; c <= 'z'; c++){ cout << hex << (int)c; }
But I can’t do the same for binary. There is no std::bin that I can use to convert the decimal numbers to binary.
Like so: