[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new post/Emacs v21.2/C++ mode/cin, cout
From: |
ryofurue |
Subject: |
Re: new post/Emacs v21.2/C++ mode/cin, cout |
Date: |
Thu, 26 Jul 2007 18:12:36 -0700 |
User-agent: |
G2/1.0 |
On Jul 26, 1:07 pm, weber <hug...@gmail.com> wrote:
[. . .]
> This has absolutely nothing to do with emacs.
>
> On the other this piece of code:
>
> // my first program in C++
>
> #include <iostream>
> using namespace std;
>
> int main ()
> {
> cout << "Hello World!";
> return 0;
>
> }
>
> compiles fine with g++ hello.cpp -o hello
I guess that the original poster didn't have
using namespace std;
In that case, an ANSI-C++ compiler should require
std::cout .
Ryo