From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Simple problem regarding text on screen Date: Thu, 31 Jul 1997 19:33:18 -0400 Organization: Cornell University http://www.cornell.edu Lines: 23 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <33E120BE.4511@cornell.edu> References: <01bc9de5$cb775bc0$75fd82c1 AT damien> Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0003.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Richard Birch wrote: > > I notice there's a manipulator for cout called 'flush', that (obviously) > flushes the output stream to the screen. But should I need to do this? And > is there one for the old stdio.h text functions? I've been programming for > years but this seems to be a recent problem. this is actually a C FAQ. stdout and stdin are buffered. so, you need to either explicitly flush them or print a newline. the stdio function fflush should be well known to you if you have been programming for years. -- Sinan ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:sinan DOT unur AT cornell DOT edu C ^ http://www.people.cornell.edu/pages/asu1/ \ ~/ Unsolicited e-mail is _not_ welcome, and will be billed for. *******************************************************************