HELP assignment PLZ

You will be asked to write 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. The program should perform error checking.

Im not asking for someone to write an entire code , but can someone help me plz i got no clue and no idea how to start . PLEASE
You could start by reading this:
http://www.sanfoundry.com/cpp-program-convert-a-decimal-base-any-base/

To convert from decimal string to int use string stream;
1
2
3
4
5
6
7
8
#include <sstream.h>

int decimal;
std::string decimalString;

std::stringstream ss;
ss << decimalString;
ss >> decimal;


Like the above, but with variables initialized;
Last edited on
Thanks for your reply !!

But im really new to C++ , only started couple months ago...
i really dont understand much
is this the most simple solution ??
Topic archived. No new replies allowed.