Message-Id: <199904221237.MAA95510@out4.ibm.net> From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Thu, 22 Apr 1999 08:37:58 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Bug no. 277 References: <199904201531 DOT PAA78048 AT out2 DOT ibm DOT net> In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.01d) Reply-To: djgpp-workers AT delorie DOT com > > > > It does use the stdio stream. > > This seems to contradict your observation that "clearerr(stdin)" in > the C++ program doesn't solve the problem, whereas in a C program it > does. > With 'int q' and clearerr(stdin), the program doesn't work correctly. With 'char q' and no clearerr(stdin), same. With 'char q' and clearerr(stdin), the program works. My second report was based on the third case while the first was based on the first two. I hope that explains the contradiction. Mark --- Mark Elbrecht, snowball3 AT usa DOT net http://snowball.digitalspace.net/