遇到cout无法识别,首先检查有没有加 #include <iostream> 和 using namespace std; 但是加了之后还报错,可以试着把#include 放在头文件的第一行,看一下问题是不是解决了~