文件打开模式ios::in|ios::out|ios::trunc

//不知道是由于内存的缓存吧,文件流这边的响应老是不太及时 ////预测,若是是这种方式打开,应该是先清除内容再打开文件 //实际结果,ios::out并不会在文件打开前把文件内容都清除 #include<cstdio> #include<iostream> #include<fstream> using namespace std; int main(){ fstream fs2("L7
相关文章
相关标签/搜索