Mail Archives: djgpp/1996/07/15/12:12:36
On 11 Jul 1996, randall williams wrote:
> I'm having the same problem. Below is a similar code fragment to what
> I was using. On my system it fills the screen and then scrolls.
You mix conio functions (gotoxy) with buffered I/O (printf). This is
usually a bad idea, as the DJGPP FAQ explains in section 9.4. In your
example program, use `cprintf' instead of `printf', and it will work as
you expect.
The program that started this thread used `cout', which is the same as
`printf' as it uses bufferd I/O at its lower levels.
- Raw text -