其他分享
首页 > 其他分享> > terminate called after throwing an instance of ‘std::logic_error‘错误修改方法

terminate called after throwing an instance of ‘std::logic_error‘错误修改方法

作者:互联网

错误提示:
准确说编译器并没有报错,但在终端有如下提示:

terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
1
2
修改方法:
检查一下程序中是否给一个string类型的变量初始化为0的情况。

搜索

复制

标签:std,after,string,throwing,error,terminate,instance,logic
来源: https://www.cnblogs.com/stdxxd/p/16482977.html