-
bases 8, 10, and 16 have built in conversions via ostream manipulators, and I believe there is a function to output base 2 in stdlib as well. If you want to convert to any other base, say 3, 7, 21, 256, etc., then you need to write your own function. To convert from one base to another I convert from base 1 to base 10 and then from base ten to base b.
-
This is exactly what I am trying to figure out.
I just don,t seem to be on the right track with my code.
Any suggestions.
Thanks
-
For example: If I wanted to evaluate from 2 to 8 base then my code would be (n%4)?
Popular pages
Recent additions