error C2065: “cout”: 未声明的标识符

原因是在头文件下 缺少这句话using namespace std;

原文地址:https://www.cnblogs.com/whutqueqiaoxian/p/3490915.html