delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/09/08:30:16

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: `cout' undeclared (first use this function)
Date: 9 Apr 2002 12:17:15 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 11
Message-ID: <a8um4b$cr2$1@nets3.rz.RWTH-Aachen.DE>
References: <5b829932 DOT 0204090338 DOT 738e47a0 AT posting DOT google DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1018354635 13154 137.226.32.75 (9 Apr 2002 12:17:15 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 9 Apr 2002 12:17:15 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Francesco Moi <francescomoi AT europe DOT com> wrote:
> HelloWorld.cpp:5: `cout' undeclared (first use this function)

[...]
> What am I doing wrong? Thank you.

Your code didn't #include <iostream>, which is the header that holds
the declarations of cout and friends.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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