首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

error C2039: “openprot”: 不是“std:basic_filebuf<Elem,Traits>”的成员,该怎么处理

2013-06-25 
error C2039: “openprot”: 不是“std::basic_filebuf_Elem,_Traits”的成员fstream outputoutput.open(fi

error C2039: “openprot”: 不是“std::basic_filebuf<_Elem,_Traits>”的成员
fstream output;
output.open(filename, ios::out|ios::trunc,filebuf::openprot);
[解决办法]
去掉最后一个参数吧
[解决办法]
int nProt = filebuf::openprot 这个是打开文件的属性。
0 普通文件
1 只读文件
2 隐藏文件
3 系统文件
你直接传值就行,如果没啥要求用默认值就好,直接去掉最后一个参数

热点排行