Date: Thu, 22 Apr 1999 11:28:02 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: "Mark E." cc: djgpp-workers AT delorie DOT com Subject: Re: Bug no. 277 In-Reply-To: <199904201531.PAA78048@out2.ibm.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 20 Apr 1999, Mark E. wrote: > > > But when I added clearerr(stdin) to bug 277's sample > > > program, it made no difference. So I have to conclude that it's a > > > libstdc++ and not a DJGPP problem . > > > > So this probably means that libstdc++ doesn't use the stdin stream at all, > > right? > > 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. > Also, I did get #277's program to work > after changing 'int q' to 'char q' along with the clearerr(stdin) call. That's because "char q" simply reads the ^Z character, I think.