I am learning C++ and in my book using namespace std
is written in every program.
I understand that std::cout <<"hello";
can be simply written as cout << "hello";
by using namespace std.
Why?
I am learning C++ and in my book using namespace std
is written in every program.
I understand that std::cout <<"hello";
can be simply written as cout << "hello";
by using namespace std.
Why?
I watched a video and it mentioned the purpose is to avoid naming conflicts which I didn’t understand.