this post was submitted on 20 Jun 2021
2 points (100.0% liked)

C & C++

59 readers
3 users here now

founded 5 years ago
MODERATORS
 

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 that std::cout <<"hello"; can be simply written as cout << "hello"; by using namespace std.

Why?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here