| www.delorie.com/archives/browse.cgi | search |
| From: | "Chris McKenzie" <taganov AT earthlink DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <tX425.32454$hp4 DOT 768849 AT newsread1 DOT prod DOT itd DOT earthlink DOT net> <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: | <Zzp25.543$FC6.18070@newsread1.prod.itd.earthlink.net> |
| 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" <ejrh AT paradise DOT net DOT nz> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |