【发布时间】:2012-10-23 04:40:23
【问题描述】:
可能重复:
C++ type of argument to ifstream::open()
C++ ifstream error using string as opening file path.
怎么了
ifstream sourceFile;
sourceFile.open(filepath);
我得到了一些关于:
没有对
ifstream::open(string&)的匹配函数调用
怎么了?
与
相同ifstream sourceFile(filepath)
filepath 是一个字符串
【问题讨论】: