Thread: easier way to flush input?

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    1

    easier way to flush input?

    I'm just a beginner programmer. Anywayz, my program starts with a screen with a long delay. Now I need to "lock" it so that even if the user input stuff from the keyboard, it will be disregarded when the next screen comes (after the delay).

    I've read the FAQ on flushing inputs. But are there easier ways to do it? Thanks in advance. BTW, I'm using Turbo C.

  2. #2
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,534
    Quote Originally Posted by GSG-9
    I'm just a beginner programmer. Anywayz, my program starts with a screen with a long delay. Now I need to "lock" it so that even if the user input stuff from the keyboard, it will be disregarded when the next screen comes (after the delay).

    I've read the FAQ on flushing inputs. But are there easier ways to do it?
    What is wrong with the FAQ methods? They are quite usable, and if they are not exactly what you are looking for, adapt something from the examples. Give it a go, and if you have trouble, post your code so people on he board can have a look.

    Quote Originally Posted by GSG-9
    Thanks in advance. BTW, I'm using Turbo C.
    Why use that archaic, ossified compiler? Look into getting gcc (with Cygwin) or download Dev-CPP
    Last edited by kermit; 02-05-2005 at 10:02 AM.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I don't see how you can get much simpler than a single function call or #define. What's simpler than one statement?

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Input class project (again)
    By Elysia in forum C++ Programming
    Replies: 41
    Last Post: 02-13-2009, 10:52 AM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  3. Structure and Linked List User Input Question
    By kevndale79 in forum C Programming
    Replies: 16
    Last Post: 10-05-2006, 11:09 AM
  4. Custom Made Safe Input Function
    By Beast() in forum C Programming
    Replies: 6
    Last Post: 08-21-2004, 10:19 PM
  5. How to Flush standard input?
    By Hardboy in forum C++ Programming
    Replies: 7
    Last Post: 02-21-2003, 03:30 PM