Base conversion problem!

This is a discussion on Base conversion problem! within the C Programming forums, part of the General Programming Boards category; I need to code an algorithm that will conver any number in any base 2 thru 9 and output the ...

  1. #1
    Unregistered
    Guest

    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
    Ethereal Raccoon Procyon's Avatar
    Join Date
    Aug 2001
    Posts
    189

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, 02:06 PM
  2. Problem in user conversion!!!
    By jeiwong in forum C++ Programming
    Replies: 8
    Last Post: 10-18-2007, 10:31 PM
  3. Header File Question(s)
    By AQWst in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2004, 11:31 PM
  4. simple currency conversion problem
    By sweetgem in forum C++ Programming
    Replies: 2
    Last Post: 08-01-2002, 01:41 PM
  5. Replies: 2
    Last Post: 02-07-2002, 09:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21