Hi Danny Keogh,
05 Oct 97 tarihinde, hatta yanilmiyorsam saat 08:34, sen Danny Keogh dedin
:
DK> Ok peoples, I need a little help from those of you who know
DK> pascal. I need the pascal statement
DK> memW[$0000:$041C] := MemW[$0000:$041A];
it depends on the compiler and the platform on which compiler runs, which
compiler are you using?
DK> translated into C. That line flushes the keyboard buffer. If
DK> there's a better way to do it, please let me know.
for borland/turbo C++ i can recommend while(kbhit()) getch(); -both functions
are prototyped in conio.h-, this is no faster code and absolutely not for
scene but it is readable and flushing keyboard buffer never takes long :-)
sorry for possible spelling mistakes.
Berk
--- GoldED/386 2.50.A0715 UNREG
---------------
* Origin: void BBS where nothing but (2:431/327)
|