c++文件操作ios::in | ios::out,不能这样用吗?
#include<iostream>#include<fstream>usingnamespacestd;intmain(){cout<<"hello,world"<<e...
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
cout<<"hello ,world"<<endl;
fstream f1;
f1.open("d:\\23.txt",ios::in | ios::out,0);
f1<<"hello word!"<<endl;
return 0;
} 展开
#include <fstream>
using namespace std;
int main()
{
cout<<"hello ,world"<<endl;
fstream f1;
f1.open("d:\\23.txt",ios::in | ios::out,0);
f1<<"hello word!"<<endl;
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询