Mail Archives: djgpp/1998/12/02/15:53:14
From: | Andrej Aderhold <dra AT spektracom DOT de>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | little problem but great troubles
|
Date: | Wed, 02 Dec 1998 18:03:23 +0100
|
Organization: | Online-Kiosk GmbH & Alphacom GmbH
|
Lines: | 29
|
Message-ID: | <366572DA.75D0D92A@spektracom.de>
|
NNTP-Posting-Host: | b239.spektracom.de
|
Mime-Version: | 1.0
|
X-Server-Date: | 2 Dec 1998 18:07:42 GMT
|
X-Mailer: | Mozilla 4.04 [en] (Win95; I)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
<HTML>
<P>hi there,
<P>I've got a really stupid problem crouching up everytime with djgpp.
So far I couldn't
<BR>solve it but its probably sth. with the buffer. here it goes.
<P>#include <iostream.h>
<BR>#include <conio.h>
<P>main()
<BR>{
<BR> cout << " some stuff";
<BR> getch();
// or even when, while(!kbhit());
<BR>}
<P>' 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
<P>cout << " some stuff\n";
<P>it's doing it right. It first shows the line and then - on keyhit -
terminates.
<BR>I would be glad if somebody could explain this to me.
<BR>Andrej Aderhold</HTML>
- Raw text -