[问题] HW6读档一直失败??

楼主: fatandy567 (Technofreak)   2012-12-15 14:16:06
string str;
ifstream ifile(fileName.c_str());
getline(ifile,str);
请问我这样写有什么问题吗??
我打cirr ok01.aag 读档都失败??
作者: Nien1027 (随便)   2012-02-15 14:47:00
cirr tests.err/ok01.aag ??
楼主: fatandy567 (Technofreak)   2012-02-15 23:51:00
还是失败QQ
作者: ypf791 (路人1号)   2012-02-16 00:16:00
我会建议你 assert(ifile.is_open()); 来确定开档是否成功

Links booklink

Contact Us: admin [ a t ] ucptt.com