Topic: KeyPressed?
Author: rising@crl.com (Hawley K Rising)
Date: 23 May 1994 20:27:24 -0700 Raw View
Stefan van Zoggel (onno1@wsintt01.info.win.tue.nl) wrote:
: I need a function "KeyPressed" which returns 1 when a key is pressed till
: the moment of execution of this function. If not then return 0.
: In Turbo C++ there's a function called kbhit(). But can I implement such a
: function by using streams in C++.
: Can anyone help me?
: Stefan
No, not until you say where you went from turbo. kbhit() is not part of
C or C++, its kinda sorta part of DOS compilers.
Hawley Rising
rising@crl.com
Author: onno1@wsintt01.info.win.tue.nl (Stefan van Zoggel)
Date: 17 May 1994 15:32:35 +0200 Raw View
I need a function "KeyPressed" which returns 1 when a key is pressed till the moment of execution of this function. If not then return 0.
In Turbo C++ there's a function called kbhit(). But can I implement such a function by using streams in C++.
Can anyone help me?
Stefan