I want to detect a keyboard hit if present and then load the
character - WITHOUt stopping the programm at console !
I used kbhit but DEVCPP does not know it. I found kbhit() and
_kbhit in the docu - but it does not work !
i also foun conio_kbit() but also no success.
(conio was in lncude)
void main( void )
{ /* Display message until key is pressed */
while( !_kbhit() )
_cputs( "Hit me!! " );
/* Use _getch to throw key away. */
printf( "\nKey struck was '%c'\n", _getch() );
_getch(); }
does not compile !
???
j=FCrgen
|