Why people don’t always use « using namespace std »? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why people don’t always use « using namespace std »?

I’ve seen a lot of code without it. Is this better?

14th Aug 2018, 8:54 PM
Zbouby
Zbouby - avatar
2 Answers
0
Some people dont like it because they get confused by which library a function is from, so if they see std:: it means its from the standard library
14th Aug 2018, 8:57 PM
ReimarPB
ReimarPB - avatar
0
oh I see thank for your answers
15th Aug 2018, 7:50 AM
Zbouby
Zbouby - avatar