integer input control (oh fun !!!)

This is a discussion on integer input control (oh fun !!!) within the C Programming forums, part of the General Programming Boards category; Heya ! What would you do if you had to input numbers separated by space, and input control them so ...

  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, 05: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, 06:04 PM

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