+ 2
Why is "using namespace std;" a bad practice?
I've read in multiple places that it is a bad practice to use it and i'm not sure why.
5 Réponses
+ 3
I don't have that much experience
But in my level of knowledge i will use using namespace std;
You can search at stack overflow for your question i think you will find something there see this link:
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
Why is "using namespace std" considered bad practice? - Stack Overflow
+ 3
The following posts may also explain and present other's viewpoints:
https://www.sololearn.com/discuss/392399/?ref=app
https://www.sololearn.com/discuss/294730/?ref=app
https://www.sololearn.com/discuss/1530209/?ref=app
https://www.sololearn.com/discuss/1561325/?ref=app
+ 1
Why do you think that because you have to use std:cin instead of cin and that's not a good thing at all by my view
+ 1
Yeah I agree, but people with lots of experience say its a bad practice and i'm not sure why. (I prefer cout over std::cout also)
+ 1
Ok thanks