這裏發生了一些非常奇怪的事情。我已經做了一個非常簡單的測試代碼來包含if流,並且我得到一個致命錯誤:在編譯時未找到'ifstream'文件。我懷疑它與編譯器有關。不能包含ifstream「致命錯誤:'ifstream'文件未找到」
#include <ifstream>
using namespace std;
int main(){
cout <<"hello world" <<endl;
}
以上是使用命令clang ++ * .cpp -o「test」與clang編譯的。
什麼是if流? –
@ColeJohnson http://www.cplusplus.com/reference/fstream/ifstream/ –