ifstream fout;
fout.open(curfile.c_str(),ios::in | ios::binary | filebuf::sh_none);可是我编译老是报:
error C2039: “sh_none” : 不是“std::basic_filebuf<_Elem,_Traits>”的成员
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
fout.open(curfile.c_str(),ios::in | ios::binary | filebuf::sh_none);可是我编译老是报:
error C2039: “sh_none” : 不是“std::basic_filebuf<_Elem,_Traits>”的成员
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
在使用到std库的地方添加域指示std::#include <fstream.h>