add dec2hex.cc

Solution to decimal-2-hexadecimal string conversion