James Kanze
9/26/2008 9:02:00 PM
On Sep 26, 6:09 pm, Victor Bazarov <v.Abaza...@comAcast.net> wrote:
> puzzlecracker wrote:
> > is it even possible or/and there is a better alternative to accept
> > input in a nonblocking manner?
> You could try using 'peek' member function. You should get
> 'eof' if no input is available, I am guessing, but don't take
> my word for it, RTFM and experiment.
Peek will wait for a character is one isn't available.
Basically, peek() is like get(), except that it doesn't extract
the character from the stream.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34