0
点赞
收藏
分享

微信扫一扫

错误检测

12a597c01003 2022-08-05 阅读 16


#include<stdlib.h>
void exit(int status);
///检测文件打开失败
std::ifstream in(file);
if(in.fail()){
std::cerr<<"Can't open"<<file<<std::endl;
exit(1);
}


举报

相关推荐

0 条评论