Thread: Auto continue

  1. #1
    Registered User cyberCLoWn's Avatar
    Join Date
    Dec 2003
    South Africa

    Auto continue

    I have made a simple game where a user inputs single digit numbers to continue playing. How can I make cin work so that the player doesn't have to press enter after each input? In other words the computer expects one digit to be entered and when it is, there is no need for enter to be pressed.

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 11-03-2008, 09:48 PM
  2. Continue and switch
    By camzio in forum C Programming
    Replies: 10
    Last Post: 10-04-2008, 08:31 AM
  3. Code: An auto expanding array (or how to use gets() safely).
    By anonytmouse in forum Windows Programming
    Replies: 0
    Last Post: 08-10-2004, 12:13 AM
  4. switch - continue
    By DavidP in forum C Programming
    Replies: 2
    Last Post: 06-24-2004, 10:09 AM
  5. continue in while loops
    By Unregistered in forum C Programming
    Replies: 7
    Last Post: 03-04-2002, 10:58 PM