TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DANNY KEOGH
from: BERK OZBOZKURT
date: 1997-10-10 14:27:00
subject: Code translation

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.