From: Tom Newsgroups: comp.os.msdos.djgpp Subject: Re: Several questions on data input and checking Date: Mon, 5 Jan 1998 12:14:52 +0000 Organization: None whatsoever Distribution: world Message-ID: References: <34ada35b DOT 324349151 AT news DOT netins DOT net> NNTP-Posting-Host: sunholme.demon.co.uk MIME-Version: 1.0 Lines: 17 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <34ada35b DOT 324349151 AT news DOT netins DOT net>, DamnULP 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