I've been told by others that writing using namespace std;
(其他人告诉我, using namespace std;
编写using namespace std;
)
std::cout
and std::cin
directly instead. (在代码中是错误的,我应该直接使用std::cout
和std::cin
代替。)
Why is using namespace std;
(为什么using namespace std;
)
(认为是不好的做法?)
Is it inefficient or does it risk declaring ambiguous variables (variables that share the same name as a function instd
namespace)? (是效率低下还是冒着声明模棱两可的变量(与std
名称空间中的函数具有相同名称的变量)的风险?)
(它会影响性能吗?)
ask by akbiggs translate from so