Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

why is using namespace std a bad practice

As the namespace std will attach a lot of functions for your program and 
might face collision with some of these unknown function name;
Example : One named his variable max but thats a function in namespace 
std which might throw you some unwanted results.
It can also collide with other imported libraries functions with the same
name.
 
PREVIOUS NEXT
Tagged: #namespace #std #bad #practice
ADD COMMENT
Topic
Name
4+9 =