Why not: using namespace std;

Hi,
I know this has been discussed but ...
Why showld i use ...
1
2
3
4
5
6
7
#include <iostream>
using std::cout;
int main()
{
	cout << "hello\n";
	return 0;
}

...instead of ...
1
2
3
4
5
6
7
#include <iostream>
using namespace std;
int main()
{
	cout << "hello\n";
	return 0;
}

Just starting a discussion before i make other related question :)
Who said you should use using at all?
closed account (z05DSL3A)
using Declarations and using directive have different effects.
http://www.cplusplus.com/forum/beginner/9181/#msg42419
Who said you should use using at all?


Are you refering to this approach?
1
2
3
4
5
6
#include <iostream>
int main()
{
	std::cout << "hello\n";
	return 0;
}


Is it not the same thing? (in this case)
Topic archived. No new replies allowed.