peeking into stdin (programing question)

Αρχική Σελίδα
Συνημμένα:
Μήνυμα σαν ηλεκτρονικό μήνυμα
+ (text/plain)
Delete this message
Reply to this message
Συντάκτης: plug-discuss@lists.plug.phoenix.az.us
Ημερομηνία:  
Αντικείμενο: peeking into stdin (programing question)
Not sure but try kbhit() returns true if something is waiting.

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