Message-Id: <199812030911.JAA06196@remus.clara.net> From: "Arthur" To: Subject: RE: little problem but great troubles Date: Thu, 3 Dec 1998 09:10:49 -0000 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <366572DA.75D0D92A@spektracom.de> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com Please don't post in HTML format. It's no problem with your program (although main() should return an int). but The feature is explained in section 9.4 of the FAQ. James Arthur - jaa AT arfa DOT clara DOT net http://www.arfa.clara.net/james/ ICQ#15054819 -----Original Message----- From: Andrej Aderhold [mailto:dra AT spektracom DOT de] Sent: 02 December 1998 17:03 To: djgpp AT delorie DOT com Subject: little problem but great troubles 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. Andrej Aderhold