using namespace std;
and not using it.
I do not really know how i cant use it (if you know what i mean) although i have done a few tests and relised that without using namespace std i must write.
#include <iostream>
int main()
{
std::cout << "Hello world"<<std:: endl;
return 0;
}
basically i just want to know if i should use "using namespace std" and if i shouldnt, where should i implement "std::" and it would really help me if someone could explain why i should do this. I heard that "using namespace std;" "pollutes" your code.........
greatly appreciated. thank you.
This post has been edited by Ryan2: 09 March 2009 - 10:59 AM

New Topic/Question
Reply




MultiQuote





|