Sender: nate AT cartsys DOT com Message-ID: <3665DC93.9F29172F@cartsys.com> Date: Wed, 02 Dec 1998 16:34:27 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: little problem but great troubles References: <366572DA DOT 75D0D92A AT spektracom DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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 > #include > > 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