Write a program converting Base 10 numbers to any base from 2 - 16

Can someone give me some advice/hints in regards to writing a program that takes a decimal number from the command line and converts this number in REVERSE order into the base specified by the last parameter??

I've been trying to study C++ for several weeks now but I'm truely uncertain of how to start this! Help if possible, thank you very much.
Seems like a common project nowadays.

A. The logarithm of base N of the number + 1 will tell you the number of digits the number has when represented in base N.
B. You can recursively get a conversion, but if you want reverse (which I think is what I would have called straightforward), the best is a for loop.
C. Use integer division + modulus to get one digit at a time.
Thanks for the advice, I only have one day remaining to try write this. I basically feel like I have 1% understanding of this damn thing. Frustration is over the roof, sorry for bothering you and thanks again.
Topic archived. No new replies allowed.