Ok, so I am messing around with c++ and I noticed that the book I am using scopes the standard namespace like so...
Code:
#include <iostream>
using namespace std;
int main()
{
//do some voodoo
return 0;
}
However, a large number of the examples I have seen online opt for...
Code:
#include <iostream>
int main()
{
using namespace std;
//do some voodoo
return 0;
}
So.. what is the prefered method and why?
I am new to this c++ stuff so be gentle.
Regards
ed