您的当前位置:首页error C2872: 'ifstream' : ambiguous symbol

error C2872: 'ifstream' : ambiguous symbol

2023-03-05 来源:小侦探旅游网

问题:

error C2872: 'ifstream' : ambiguous symbol

错误C2872:“ifstream”:不明确的符号

解决:

当碰到 io 相关编译错误时,将

#include <iostream.h>
#include <fstream.h>

修改为

#include <iostream>
#include <fstream>

using namespace std;

因篇幅问题不能全部显示,请点此查看更多更全内容