Why people don’t always use « using namespace std »? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
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