[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: g++-3.2 problem



Thus spake Barney Wrightson:
> either put the following line here, this will expose every thing in 
> namespace std, so you don't need to do it explicitly each time you use 
> something within std:
> 
> using namespace std;

If you don't want to expose everything in the std namespace, but just
want to expose the few things you use, you can also do something like:

#include <iostream>
using std::cout;
using std::endl;

int main()
{
   cout << "Hello, world!" << endl;
}

-- 
Nathan Poznick <poznick@conwaycorp.net>

A man who lives, not by what he loves but what he hates, is a sick man.
- Archibald MacLeish



Reply to: