I think the whole point of this exercise is for you to write a function along the lines of
void convertToBase( int number, int base, char *result );
Assuming you know how to do this for base 10, through application of the / and % operators, the rest should follow naturally.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005