📜  为什么使用命名空间 std 是一种不好的做法 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:19.243000             🧑  作者: Mango

代码示例1
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.