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?

  • @the_tech_beastOP
    link
    23 years ago

    I watched a video and it mentioned the purpose is to avoid naming conflicts which I didn’t understand.