From: "Chris McKenzie" Newsgroups: comp.os.msdos.djgpp References: <961077643 DOT 986871 AT shelley DOT paradise DOT net DOT nz> Subject: Re: Newbie DJGPP compiler question Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: Date: Fri, 16 Jun 2000 13:02:49 GMT NNTP-Posting-Host: 38.37.12.184 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread1.prod.itd.earthlink.net 961160569 38.37.12.184 (Fri, 16 Jun 2000 06:02:49 PDT) NNTP-Posting-Date: Fri, 16 Jun 2000 06:02:49 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Edmund Horner" wrote in message news:961077643 DOT 986871 AT shelley DOT paradise DOT net DOT nz... > I expect your problem is with the flushing of standard output: in C or C++ > standard output is only displayed to the screen every now and then, usually > when a new line is reached. This is called buffered output, and is most > obvious when the output is interspersed with input from the user. > > To flush standard output in C++ try something like: > cout << flush; > Or in C: > fflush (stdin); Thank you very much for your input. The fflush didn't work, but I suspect that's because I don't know what to #include so that that function is seen, but the cout << flush suggestion worked like a charm. Beautiful... Thanks so much. Chris