+ 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.

8th Mar 2019, 2:27 PM
Dylan Price
Dylan Price - avatar
5 Antworten
+ 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
8th Mar 2019, 2:56 PM
Sahil Bhakat
Sahil Bhakat - avatar
+ 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
8th Mar 2019, 2:39 PM
Sahil Bhakat
Sahil Bhakat - avatar
+ 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)
8th Mar 2019, 2:44 PM
Dylan Price
Dylan Price - avatar
+ 1
Ok thanks
8th Mar 2019, 4:11 PM
Dylan Price
Dylan Price - avatar