This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: std::cout
- From: de Chalendar Gael <de-chalendarg at zoe dot cea dot fr>
- To: eduardoo at antar dot com dot mx
- Cc: gcc-help at gcc dot gnu dot org
- Date: 04 Dec 2002 17:33:34 +0000
- Subject: Re: std::cout
- References: <20021204162645.67507.qmail@web11508.mail.yahoo.com>
write the following line in an implementation file (.cpp) but never do
that in a header file in order to not pollute all your namespaces.
using namespace std;
It should be placed after the #include because the namespace must be
known.
Gael
On mer, 2002-12-04 at 16:26, Eduardo Osorio Armenta wrote:
>
> Hi
> how can i eliminate the
> need to put
>
> std::
>
> before every statement
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com