This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::cout


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]