Basic C++ question

@OP: Can you tell us exactly what it is you're trying to do?
Lots of ways of skinning this particular cat - BCD, decimal, hex.