标准C++库中的 string 与 ifstream
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
bool readParaFile(string filename){
ifstream parafile(filename);
return true;
}
ifstream 的构造函数 不识别 string 对象
都是标准库中的,又推荐用string不用char*,为什么?
望有大侠指点。
我的油箱:jjcao@comgi.com
jjcao@163.com