hey guys, can someone explain the difference of declaring namespace right below the library
and using the std:: in the code it self?
using namespace std;
is this compiler specific, and is there a standard? I have two books, "Absolute C++" by Savitch whitch teaches the decleration of 'using namespace std;' and "Accelerated C++" by Koenig and Moo whitch starts of with std::
std::cout << "Hello, World!" << std::endl;
I use VC++ 6.0, and both ways work, but the authors of accelerated c++ say that things such as
does not work, and displays and error message
vector<double>::size_type n = 0;