delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/02/07:45:16

From: "HELENA BROMAN" <mirja DOT helena AT swipnet DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Undeclared (first use...
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID: <huNWa.2519$Y5.598@nntpserver.swip.net>
NNTP-Posting-Host: 213.101.48.157
X-Complaints-To: news-abuse AT swip DOT net
X-Trace: nntpserver.swip.net 1059824653 213.101.48.157 (Sat, 02 Aug 2003 13:44:13 MET DST)
NNTP-Posting-Date: Sat, 02 Aug 2003 13:44:13 MET DST
Organization: A Customer of Tele2
X-Sender: s-1012908 AT d213-101-48-157 DOT swipnet DOT se
Date: Sat, 2 Aug 2003 13:45:28 +0200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi all!

I've just started C++ and is not doing so fine...
I am trying the Hello World script:

#include <iostream.h>

int main()
{
  cout << "Hello World!\n";
return 0;
}

and is compiling in djgpp

First I get an Backward varning for iostream.h so I remove the .h part and
gets this...

world.cpp:    In function `int main()´:
world.cpp:5   `cout´ undeclared (first use this function)

Use what first? Whats wrong?
I use Win 98

Cheers!
Mattias



- Raw text -


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