peeking into stdin (programing question)

Inizio della pagina
Allegati:
Messaggio come e-mail
+ (text/plain)
Delete this message
Reply to this message
Autore: plug-discuss@lists.plug.phoenix.az.us
Data:  
Oggetto: peeking into stdin (programing question)
Not sure but try kbhit() returns true if something is waiting.

       if(kbhit())
             {
             c=getch();
             ...
             }