主题:那位高手帮帮忙!!~~
在声明ifstream对象时,编译不通过,出错。出错信息如下:
c:\program files\microsoft visual studio\myprojects\5062049014_6\5062049014_6\file.cpp(33) : error C2440: 'initializing' : cannot convert from 'enum std::ios_base::_Openmode' to 'class std::basic_ifstream<char,struct std::char_traits<char> >'
No constructor could take the source type, or constructor overload resolution was ambiguous
恳请哪位高人帮我解释一下,怎么回事。
c:\program files\microsoft visual studio\myprojects\5062049014_6\5062049014_6\file.cpp(33) : error C2440: 'initializing' : cannot convert from 'enum std::ios_base::_Openmode' to 'class std::basic_ifstream<char,struct std::char_traits<char> >'
No constructor could take the source type, or constructor overload resolution was ambiguous
恳请哪位高人帮我解释一下,怎么回事。