错误 error: ‘assert’ was not declared in this scope 解答

运行程序出现错误
error: ‘assert’ was not declared in this scope assert(in.is_open());

解决方法:
加入头文件

#include 

你可能感兴趣的:(错误整理)