VS写c++,写着写着突然所有cout标红,但是代码编译运行都没问题,光标放在cout上显示“<error-type> cout 不明确”
查看了头文件没有问题,博友说是using namespace std 的问题(这是什么问题)???
于是 根据自己的代码
#include "pch.h"
#include <iostream>
#include <iomanip>
#include <vector>
#include<queue>
#include<list>
using namespace std;
//最大城市数量
把using namespace std;与下一行注释中间隔了一行
#include "pch.h"
#include <iostream>
#include <iomanip>
#include <vector>
#include<queue>
#include<list>
using namespace std;
//最大城市数量
就没有标红了。。。。。。
再把空行删掉也没有问题。