Mail Archives: djgpp/1999/04/08/09:41:02
From: | "Jason Nehf" <zolaar AT earthlink DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | extreeeeme newbie question
|
Date: | Thu, 8 Apr 1999 00:03:20 -0500
|
X-ELN-Insert-Date: | Wed Apr 7 22:05:11 1999
|
X-Newsreader: | Microsoft Outlook Express 4.72.3155.0
|
Organization: | EarthLink Network, Inc.
|
X-Posted-Path-Was: | not-for-mail
|
Lines: | 23
|
NNTP-Posting-Host: | ip140.chicago14.il.pub-ip.psi.net
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0
|
X-ELN-Date: | 8 Apr 1999 05:03:28 GMT
|
Message-ID: | <7ehdb0$3o2$1@fir.prod.itd.earthlink.net>
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Okay, I'm trying to write a simple "Hello, world!" program. this is the
code:
#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
cout << "Hello, world!";
getch();
}
But for some reason, the getch() is called first, THEN the cout, and the
clrscr() is never called at all!! And I'm not the only one - my friend says
the same thing happens to him. I probably am doing something horribly wrong
and will feel like a horses arse when I find out what, but if someone could
point me in the general direction of an answer, i'd be much obliged!!
BTW - I'm not a newbie, this is for Computer Science class. Heh, i usually
use Allegro and such stuff...not iostream functions. :-)
- Raw text -