Thread: Need help in controlling an infinite loop..!!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2012
    Location
    Chennai, Tamil nadu, India
    Posts
    30

    Need help in controlling an infinite loop..!!

    Hello Friends..! Need ur help..!!

    Actually i'm trying to code a game like thing..! In that, there is an aquarium of two fishes..

    Both moving in opposite directions simultaneously and endlessly..

    And two options will be displayed below the bottom of the aquarium..!!

    One is To exit and another one is to feed those fishes...!!

    If i press esc, the program should end and when i press enter, it should shower '*' symbols.

    And i did only the second part.., i mean, an infinite loop to shower the symbol and the movement of fishes..

    And i don't know how to control the infinite loop by those keystrokes...

    Actually is that possible..?? Programmers..!! Help me please...!!!
    Last edited by Rehman khan; 10-13-2012 at 09:24 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 10-14-2011, 11:33 PM
  2. Infinite Loop
    By bolivartech in forum C Programming
    Replies: 3
    Last Post: 10-25-2009, 01:31 PM
  3. stays in loop, but it's not an infinite loop (C++)
    By Berticus in forum C++ Programming
    Replies: 8
    Last Post: 07-19-2005, 11:17 AM
  4. almost infinite loop
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 02-11-2002, 06:01 PM
  5. Infinite loop?
    By ER in forum C++ Programming
    Replies: 2
    Last Post: 12-02-2001, 05:47 PM