作业帮 > 综合 > 作业

terninate called after throwing an instance of 'std::logic_e

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/06/16 20:40:46
terninate called after throwing an instance of 'std::logic_error'
what():basic_string::_S_construct NULL not valid
Aborted
程序编译没问题,运行的时候提示这个,
1
terninate called after throwing an instance of 'std::logic_e
错误信息为:
一个实例化的逻辑错误导致程序中止.
在what()函数中不能使用NULL来构造basic_string的对象.
下面是 错误 用法的演示: