Mail Archives: djgpp/1998/12/02/19:38:27
Andrej Aderhold wrote:
>
> hi there,
>
> I've got a really stupid problem crouching up everytime with djgpp. So
> far I couldn't
> solve it but its probably sth. with the buffer. here it goes.
>
> #include <iostream.h>
> #include <conio.h>
>
> main()
> {
> cout << " some stuff";
> getch(); // or even when, while(!kbhit());
> }
>
> ' some stuff' first appears at the screen when I hit the key, and then
> the programm terminates. So, now when I put a \n behind stuff like
>
> cout << " some stuff\n";
>
> it's doing it right. It first shows the line and then - on keyhit -
> terminates.
> I would be glad if somebody could explain this to me.
First, please don't post in HTML.
Next, read FAQ section 9.4.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -