Find the answer to your Linux question:
Results 1 to 3 of 3
Hi there, basically i have to create a simple program with will continually read input from the user until they enter a blank line i know how to read in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    1

    Small program help please


    Hi there, basically i have to create a simple program with will continually read input from the user until they enter a blank line

    i know how to read in certain input but not sure how to get it continually in a loop

    any help would be great

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    asking homework questions is specifically against the forum rules

    if you have a specific question about a programming language, then please post it and we will be happy to answer

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    This sounds a lot like a homework question, which are not allowed as per the forum rules:
    http://www.linuxforums.org/forum/lin...ums-rules.html

    You should look into infinite loops. You can then use flow control statements to break out of the loop without going through the loop condition.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •