TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: GABOR MANIC
from: CHRISTOPHER BUTLER
date: 1997-07-11 16:02:00
subject: Help me!

Hi Gabor!
When Gabor Manic wrote to Christopher Butler on Sunday July 06 1997, Gabor 
was talking about Help me!.
 CB>> char i;
 CB>> if (inp(0x64) & 1)  // same as kbhit()
 GM>         ^^^^^^^^^^^^^^^
 GM>         The problem is here
No it isn't, the & won't change the variable...
if (inp(0x64) && 1) means "If inp(0x64) is true, and 1 is true, then go"
The problem is with getch()... it hangs the computer (in pure DOS), or 
crashes the Win95 DOS box...
Chris
--- FMail/Win32 1.22
---------------
* Origin: Death Butler BBS, +44-1582-620141, 24 Hours (2:257/135)

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™.