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)
|