d2b.cpp Base 10 to Base X Conversion Compiled using g++ version 4.6.3 Program converts a base 10 number to any other base. I've only tested so many cases so far, but it seems to work well for binary, hexadecimal, and base 4.