delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/07/20/01:53:08

From: Andrew Cottrell <spam AT bigpond DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP please: C++ Not working!!
Date: Sun, 20 Jul 2003 15:17:45 +1000
Organization: HOME
Message-ID: <cq8khv02gotbaudvo52laqicb1p3ccc16g@4ax.com>
References: <umqjhv4ncr5ni8j45i83dfvlfdhsakt6ib AT 4ax DOT com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Lines: 19
NNTP-Posting-Date: 20 Jul 2003 13:17:45 WST
NNTP-Posting-Host: 202.154.115.197
X-Trace: 1058678265 news.swiftel.com.au 6690 202.154.115.197
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>My program looks like this:
>/* C++ */
>
>#include <iostream>
>
>int main(void) {
>
>  cout << "Hello World!" << endl;
>
>}
I suggest that you have a look at one of the newere C++ book as the
C++ standard changed a while ago and the code above is now will not
compile as you have found. You need to add the following line after
the include:-

using namespace std;

Regards,
Andrew

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019