Code to convert Hex Binary, and Decimal Values (C++).