Steve Bby <[EMAIL PROTECTED]> 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.
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to