Thread: integer input control (oh fun !!!)

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    3

    integer input control (oh fun !!!)

    Heya !

    What would you do if you had to input numbers separated by space, and input control them so they're only integers. moreover, you can't use any external function, or loops, only recursion. (it's for home assignment).

    Thanks

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    OH MY GAWD!!! Welcome to transgalactic2.com!

    Have a look at post number 5 in this thread, which is a continuation of post #8 in this thread.

    You are much in luck today, because it works perfect. Now you just have to understand why before you hand it in

    And say hi to your classmate! S/he is a very funny person!
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Link List math
    By t014y in forum C Programming
    Replies: 17
    Last Post: 02-20-2009, 06:55 PM
  3. Controlling edit control input
    By Gerread in forum Windows Programming
    Replies: 6
    Last Post: 05-03-2007, 08:56 PM
  4. Reading the input file into integer arrays
    By supaben34 in forum C++ Programming
    Replies: 3
    Last Post: 12-06-2002, 07:04 PM