Es necesario using namespace std? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Es necesario using namespace std?

En la universidad no me enseñan eso

16th Apr 2019, 1:43 AM
Renekton
Renekton - avatar
1 Answer
+ 6
No it's not, it's also a bad practice generally unless you have a precise reason to do it. In small exercises it's useful however, in real programming not. There are many discussions about but I suggest you to keep using scope resolution :: to access namespaces, when you 'll feel you must use "using namespace directive you will be experienced enough to know how to avoid it :)
16th Apr 2019, 7:57 AM
AZTECCO
AZTECCO - avatar