Added hex to dec conversion in C++