Urgent Help Needed

This is a discussion on Urgent Help Needed within the C Programming forums, part of the General Programming Boards category; im trying to write a fuction that takes in an integer and returns each of the three differnt digits in ...

  1. #1
    Unregistered
    Guest

    Unhappy Urgent Help Needed

    im trying to write a fuction that takes in an integer and returns each of the three differnt digits in a seperate referance permater. Im completly lost as where to start to try to break the number down......please help

    thanks

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    321

    321%10 = 1
    321/100 = 3
    (321 - (numofhundreds*100))/10=2
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Unregistered
    Guest

    THANKS!!!!!

    i forgot about the % operator....i feel like a dumbass...thanks alot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Urgent Help Needed In Writing Algorithm!!
    By Vikramnb in forum C++ Programming
    Replies: 1
    Last Post: 01-09-2009, 12:46 PM
  2. Urgent help needed in Socket Programming
    By lisa23 in forum C Programming
    Replies: 2
    Last Post: 09-16-2005, 12:18 AM
  3. unknown error, urgent help needed
    By chris285 in forum C++ Programming
    Replies: 5
    Last Post: 04-30-2003, 05:09 AM
  4. Help Needed: Borland C++ 5.5 Installation - URGENT!
    By Linette in forum C++ Programming
    Replies: 12
    Last Post: 03-09-2002, 06:44 PM

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