--- e2esunil mudulakar <[EMAIL PROTECTED]> wrote: > hello all...(sir) > > i have a problem that in an > infinity loop my cursor at all the time > should scan for kbhit() (else or not...) > > my problem is if i use the kbhit in loop .. > if once kbhit is hitted the kbhit flag is getting > non zero element (-1) > > here how to reset KBHIT.. i.e after execution of 1 > iterative > kbhit should be again like the value which is there > at the > beginning after main.. > kindly give me idea. > > Thanks all.. > > > --------------------------------- > Bored stiff? Loosen up... > Download and play hundreds of games for free on > Yahoo! Games. > > [Non-text portions of this message have been > removed] > > kbhit() has been replaced with _kbhit(). _kbhit() reads the keyboard buffer looking for keys from the keyboard. If a key is found the function will return true (non zero) otherwise false. It will continue to return true until the/all keys are removed from the buffer using getch() function. _kbhit() will not wait for a key to be pressed. Additionally _kbhit() should not be used in windows GUI and is not part of the ANSI c++ standard.
Mickey M. Construction Partner Inc. http://www.constructionpartner.com ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news