Lost in base conversion.

I've just started doing C++, I had no idea it was a part of my course, so it's an absolute overload.



I'm currently doing a practice exam question where I have to convert decimal to any base, between base 2 through to 16 using the command prompt.
So
<Program name>
<Number>
<b2-16>

I understand the maths of how to convert something into base. But I really have absolutely no idea how to get started on this, and it's doing my head in.

How do I get started with this project?


Thanks.
Last edited on
Well, it's hard to give useful help without knowing at what stage you are stuck. This program might be divided into four stages:

1. prompt the user for input
2. get the input
3. do the conversion
4. output the result

Are you familiar with any of these stages at all, and what code have you written so far for this question?

Last edited on
@chervil ... can u plz inbox me your email .... would really appreciate it.... thank u
@dero
I've chosen to not accept personal messages or emails on these topics because in the past I've let people down by being unavailable to respond within a reasonable timescale. If you have a question, I suggest you start a new thread and let whichever forum members are available respond.
@chervil ... thank u for your reply ..ofcourse I do respect your choice ... it was a question regarding the program you have helped me finish .. will open a new thread and post my question but please can u have a look at it if you have time.
Thanx in advance
Topic archived. No new replies allowed.