“std”: 具有该名称的命名空间不存在

当只用using namesp std 时,会报 error C2871: “std”: 具有该名称的命名空间不存在。

包含一个含有std的头文件就不会报错了,比如<iostream>、<functional>、<algorithm>等

原文地址:http://blog.sina.com.cn/s/blog_684ae17501014zi8.html

原文地址:https://www.cnblogs.com/albert1017/p/3342268.html