Thread: Base conversion problem!

  1. #1

    Unhappy Base conversion problem!

    I need to code an algorithm that will conver any number in any base 2 thru 9 and output the number to its base 10 equivalent....

    i havent been able to come up with a way to analyze each digit of the number that the user inputs, and manipulate and verify it (my professor told me that i can use division or mod to do this, and i've tried and tried, but nothing makes sense!).. i cant figure this out.... i have an idea of how to convert numbers back and forth in their baes but i'm stuck here! Could someone please please help me?!?! i am new to programming and having a rough time, there are no tutors at my school..Thank you!

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Conversion Char To Char * Problem
    By ltanusaputra in forum Windows Programming
    Replies: 3
    Last Post: 03-01-2008, 01:06 PM
  2. Problem in user conversion!!!
    By jeiwong in forum C++ Programming
    Replies: 8
    Last Post: 10-18-2007, 09:31 PM
  3. Header File Question(s)
    By AQWst in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2004, 10:31 PM
  4. simple currency conversion problem
    By sweetgem in forum C++ Programming
    Replies: 2
    Last Post: 08-01-2002, 12:41 PM
  5. Replies: 2
    Last Post: 02-07-2002, 08:39 AM