[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #include <iostream> ERROR
From: |
Thomas Maeder |
Subject: |
Re: #include <iostream> ERROR |
Date: |
Fri, 16 Jun 2006 20:50:24 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
Steve Bby <steve_bby@yahoo.com> writes:
> I compile a small program below:
> ********************
> #include <iostream>
>
> main()
Implicit has been obsolete for very long time now.
> {
> cout << "Test\n";
<iostream> declares cout in name std. Refer to that object with the
name std::cout, or use a using declaration or using directive.
More, the operator<< overload for character arrays is declared in the
Standard header <ostream>, not <iostream> (not necessarily anway). In
order to write portable code, #include <ostream> as well.