Mail Archives: djgpp/1998/01/05/13:48:52
In article <34ada35b DOT 324349151 AT news DOT netins DOT net>, DamnULP
<damnulp AT netins DOT net> writes
>This works fine until someone enterssomething like a "w". Then it goes
>into an loop that can only be exited by the ctrl-brk key. Is there a way
>to check for this and stop the loop from starting?
This is the library's way of telling you somebody has entered something
wrongly. It happens on Think C++ on the Macintosh too, and on BC++ 5.0
under Windows, so I guess it must be standard :-(
Oh, and if you're going to use gotoxy(), don't. Its behaviour with
cin/cout is undefined, so although it might work it is not guaranteed.
Of course given the above problem cout might be the one you would want
to dispense with :-)
--Tom
My real e-mail address is tom AT sunholme DOT demon DOT co DOT uk
- Raw text -