Thread: Stuck in infinite loop

  1. #1
    Registered User
    Join Date
    Feb 2015

    Stuck in infinite loop

    Hi there! Please, my code seems to enter an infinite loop should a user mistakenly enter a character other than a digit. The code is about selecting from a preset number of options, numbered 1- 4. If the user mistakenly enters a letter for example, instead of a number, the infinite loop kicks in... Someone help!

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stuck in an infinite while loop. Help.
    By Lonck in forum C++ Programming
    Replies: 10
    Last Post: 10-25-2007, 04:24 AM
  2. Replies: 1
    Last Post: 10-27-2006, 01:21 PM
  3. Replies: 6
    Last Post: 10-23-2006, 07:22 PM
  4. Program stuck in infinite loop-->PLEASE HELP
    By Jedijacob in forum C Programming
    Replies: 5
    Last Post: 03-26-2005, 12:40 PM
  5. Program gets stuck in infinite loop
    By Xanth in forum C++ Programming
    Replies: 10
    Last Post: 02-08-2005, 12:51 AM