What is the purpose of 'using namespace std' in C++?
What is the purpose of 'using namespace std' in C++?
cross-posted from: https://lemmy.ml/post/70930
I am learning C++ and in my book
using namespace std
is written in every program. I understand thatstd::cout <<"hello";
can be simply written ascout << "hello";
by using namespace std.Why?
0
comments