Possible Duplicate:
Why is 'using namespace std;' considered a bad practice in C++?
I have done a little research and am looking for something close to the definitive answer on whether or not, as a farily new programmer (and very new to C++) I should get in the habit of including “using namespace std;” after my included libraries. OR do you guys recommend I start with identifying the scope everytime and use namespaces later? Namespaces now, namespaces later… The professor leaves it up to us and as our programs are fairly simple right now I don’t know if it’s too critical either way. I’d love to hear opinions. Thanks!
Get in the habit of not
using namespace std. It’ll make your life easier when you start using lots of libraries with each their own namespace and potentially conflicting identifiers.If you want to abbreviate, say,
std::couttocout, you can always declare