std::cout

de Chalendar Gael de-chalendarg@zoe.cea.fr
Wed Dec 4 08:32:00 GMT 2002


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




More information about the Gcc-help mailing list