delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/31/17:30:12

From: MCheu <mpcheu AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problems with cout on Win98
Organization: Metronome
Message-ID: <6ta3suomu4rnrbrrucpfru9bqqhnnq87s0@4ax.com>
References: <3dc0270e$1 AT news DOT swissonline DOT ch> <3dc1800d$1 AT news DOT swissonline DOT ch>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Lines: 36
Date: Thu, 31 Oct 2002 17:18:16 -0500
NNTP-Posting-Host: 209.188.65.105
X-Trace: localhost 1036102706 209.188.65.105 (Thu, 31 Oct 2002 15:18:26 MST)
NNTP-Posting-Date: Thu, 31 Oct 2002 15:18:26 MST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Thu, 31 Oct 2002 20:11:30 +0100, "Felix Althaus"
<felix DOT althaus AT swissonline DOT ch> wrote:

>Hello again
>
>I changed the code to the following:
>
>#include <iostream>
>using namespace std
>int main()
>{
>
>cout. << "Hallo";
>return 0;
>}
>


Maybe try a semicolon after "using namespace std":

eg.

using namespace std;


or just forget that line altogether and prefix your instructions with
the proper namespace.

eg. 

std::cout << "hello";

-----------
Thanks

MCheu

- Raw text -


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