<分区>
这里发生了一些非常奇怪的事情。我做了一个非常简单的代码测试位来包含一个 if 流,我得到一个 fatal error :'ifstream' file not found on compilation。我怀疑这与编译器有关。
#include <ifstream>
using namespace std;
int main(){
cout <<"hello world" <<endl;
}
以上是使用命令 clang++ *.cpp -o "test"用 clang 编译的。