www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/22/08:37:49

Message-Id: <199904221237.MAA95510@out4.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Thu, 22 Apr 1999 08:37:58 -0400
MIME-Version: 1.0
Subject: Re: Bug no. 277
References: <199904201531 DOT PAA78048 AT out2 DOT ibm DOT net>
In-reply-to: <Pine.SUN.3.91.990422112740.15748H-100000@is>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019