+ 1

Isn’t doing “Using namespace std” a bad practice?

I thought “using namespace std; (or other)” is bad practice, if so why do all the example use using namespace?

13th Jun 2018, 9:54 PM
Artem Katerynych
Artem Katerynych - avatar
2 Respostas
14th Jun 2018, 2:43 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
SoloLearn tries to simplify the amount of information required to start programming. Having the using be added for you and not having to put std:: in front of library names makes it easier for beginners. Therefore, that is the path they picked. When you get a job in the field, you will have to learn all of the standard practices of your new company (most companies are different) so you can learn about this issue then. It isn't a huge deal because the company expects a learning curve even from the experts with decades of experience.
14th Jun 2018, 12:39 AM
John Wells
John Wells - avatar