>>I need help!<<(duh) 
Author Message
 >>I need help!<<(duh)

Okay i've got a nice little flashcard program that i wrote that will
basically show a word for a set amount of time then clear the screen
and let you type in the word and then it checks for spelling.  THe
only problem is that  i use either delay, sleep, or my own
function--pause--to set the amount of time that the word is shown,
none of these willl actually also lock out the keyboard(i.e. the user
can type in the word while it is still displayed).  Can anyone tell me
how to temporarily lock the keyboard or otherwise overcome this
problem?


Tue, 16 Jun 1998 03:00:00 GMT  
 >>I need help!<<(duh)

Quote:

>Okay i've got a nice little flashcard program that i wrote that will
>basically show a word for a set amount of time then clear the screen
>and let you type in the word and then it checks for spelling.  THe
>only problem is that  i use either delay, sleep, or my own
>function--pause--to set the amount of time that the word is shown,
>none of these willl actually also lock out the keyboard(i.e. the user
>can type in the word while it is still displayed).  Can anyone tell me
>how to temporarily lock the keyboard or otherwise overcome this
>problem?

You'll may find it easier to flush any waiting input than to lockout
the keyboard.  Just flush it between the time the word is cleared and the
user is prompted for input. This type of code would be rather compiler/
system specific (fflush(stdin) in NOT the solution!).  So, you'll need to
check in a group that specializes in your os and/or compiler.  The c.l.c
faq (Frequently Asked Question) list mentions a few functions tthat might
help with this on various systems.  The faq list is available by anonymous
ftp from rtfm.mit.edu /pub/usenet/comp.lang.c.

--
John R Buchan           -:|:-     Looking for that elusive FAQ?  ftp to:



Tue, 16 Jun 1998 03:00:00 GMT  
 >>I need help!<<(duh)
Ok i have tried to read about it but i am still clueless.  could
someone explain the difference between cin and cerr.(maybe example
code--please no borlandc 1000 line source to explain declaring ints
tho<G>)


Sat, 11 Jul 1998 03:00:00 GMT  
 >>I need help!<<(duh)

Quote:

>Ok i have tried to read about it but i am still clueless.  could
>someone explain the difference between cin and cerr.(maybe example
>code--please no borlandc 1000 line source to explain declaring ints
>tho<G>)

How do you spell 'C'? As C++? Aren't "cin", "cout", and "cerr" C++'s
equivalent to "stdin", "stdout", "stderr"? If so, then these are
pre-defined FILE pointers given to when your program initiates. "cin" is
usually the console or keyboard for input; "cout" is normally the screen
for output, and "cerr" is usually the screen even on redirected output.
Greg DiGiorgio


Sat, 11 Jul 1998 03:00:00 GMT  
 >>I need help!<<(duh)
first of all thank you for all the help i recieved so quickly,
secondly i apologize for posting to the wrong group, you see i had
just come back from writing a 1 and 1/2 hour long essy for english
class so my brain was in the wrong gear. finally thanx for just
letting me know, definitely a much nicer group than some of the
others.


Sun, 12 Jul 1998 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. <<<<<<<Parsing help, please>>>>>>>>

2. File Format conversion, ascii freeform -->.csv <-->.wk1<-->dbf<-->?HELP

3. <<<>>>Need C code advice with functions and sorting.<<<>>>

4. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

5. >>>Windows Service<<<

6. <<<< C Grammar for yacc needed >>>>

7. <<ndbm.h>> - please help

8. >>>> NEED CAB SDK HELP <<<

9. proposal: <basic.h>, <pascal.h>, <fortran.h>, <cobol.h>

10. - - - = = =<><> W e b - U S A <><>= = = - - -

11. >>>> * Get keypress * <<<<

12. <Ctrl>+<Key>

 

 
Powered by phpBB® Forum Software