And*_* DM 4 c++ file-io iostream
我见过这样编写的代码:
ifstream fin;
fin.open("largefile.dat", ifstream::binary | ifstream::in);
Run Code Online (Sandbox Code Playgroud)
现在这让我感到困惑,上面的代码和下面的代码之间是否有任何区别使用ios::binary和ios::in替换?
ifstream fin;
fin.open("largefile.dat", ios::binary | ios::in);
Run Code Online (Sandbox Code Playgroud)