hey guys, can someone explain the difference of declaring namespace right below the library
and using the std:: in the code it self?Code:#include <iostream>
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::Code:std::cout << "Hello, World!" << std::endl;
thankx,
axon
----edit----
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 messageCode:using std::vector
vector<double>::size_type n = 0;