using namespace std
时间: 2023-10-20 14:06:22 浏览: 16
The "using namespace std" statement is used to avoid prefixing every standard library function or object with "std::". It tells the compiler to use the namespace "std" by default, so you can simply write "cout" instead of "std::cout" and "vector" instead of "std::vector". However, it is generally not recommended to use "using namespace std" in header files or global scopes, as it can lead to naming conflicts and make code harder to read and maintain.
相关推荐
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)