From: Vik Heyndrickx Newsgroups: comp.os.msdos.djgpp Subject: Re: printf/getch problem Date: Tue, 27 Jan 1998 10:56:46 +0100 Organization: University of Ghent, Belgium Lines: 24 Message-ID: <34CDAF5E.7156@rug.ac.be> References: <34CC5211 DOT 57270346 AT alcyone DOT com> <19980127034901 DOT WAA22568 AT ladder02 DOT news DOT aol DOT com> NNTP-Posting-Host: eduserv1.rug.ac.be 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 Myknees wrote: > >Leon Heller wrote: > >> Try fflush(stdout). > > > >Better yet, do not mix stdio and conio calls. > >They were not meant to be > >used at the same time. > > I hear many people say that, and it makes sense on an abstract level, since > file (or stdin / out) I/O is different from console I/O. But no one has ever > said what concrete bad would really come of it. Try to mix printf and cprintf in a program and redirect its output into a file. That is one example. Another (not tried yet) printf ("nicely out of order"); cprintf ("This is printed "); printf ("\n"); -- \ Vik /-_-_-_-_-_-_/ \___/ Heyndrickx / \ /-_-_-_-_-_-_/