DictParser::DictParser(const std::string &path) {
_fs.exceptions(ifstream::badbit);
_fs.open(path);
};
try {
DictParser parser("/home/xxx/1.dict");
} catch (const ifstream::failure & e) {
}
【 在 steven2012 的大作中提到: 】
: 构造函数打开方式不变,怎么实现?!谢谢
--
FROM 123.118.191.*