Base Converter

This is a discussion on Base Converter within the C Programming forums, part of the General Programming Boards category; Hi guys, I'm kinda new in C Programming and I was just wondering if you guys could help me out ...

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    Unhappy Base Converter

    Hi guys, I'm kinda new in C Programming and I was just wondering if you guys could help me out on this one. I was asked by my prof to make a base converter that would convert a number from one base to another. The program should receive the source base, the input number, and the destination base. The output is supposedly a number in the base specified. Please I don't have any idea how to start it off...Please just give me a few ideas...tnx....oh by the way directions on us also prohibits the use of other libraries other than the standard input/output libs....please please please give me some ideas....thanks in advance!!!

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,801
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    Study how you would input and output a number in base 10.

    Once you know how the idea of base works in the representation of numbers, then the rest is easy.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    Salamat!

    guys, thanks for the link! its really a great help...it really made my prob easier!!! u guys rock!!!!!!!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  2. Base Converter Part 2
    By encyclopedia23 in forum C Programming
    Replies: 2
    Last Post: 12-30-2006, 01:42 PM
  3. Base10 to Base n converter
    By P4r4digm in forum C++ Programming
    Replies: 1
    Last Post: 10-04-2006, 09:34 PM
  4. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 01:11 AM
  5. I need some help with a base converter
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 05-29-2002, 07:43 PM

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