Is there an elegant way of converting strings containing digits
between different number bases in C++?
I.e.:
10 (base 2) = 2 (base 10)
FF (base 16) = 256 (base 10)
F (base 16) = 1111 (base 2) etc?
Thanks,
Alex
--
Take a nap, it saves lives.
between different number bases in C++?
I.e.:
10 (base 2) = 2 (base 10)
FF (base 16) = 256 (base 10)
F (base 16) = 1111 (base 2) etc?
Thanks,
Alex
--
Take a nap, it saves lives.
Comment