全部报错信息:

terminate called after throwing an instance of 'std::logic_error'

本文列出的可能原因也都是网上搜集而来:

    1. 程序中可能有给一个string类型的变量初始化为0的情况
    1. 程序中可能对空指针进行了操作,比如
char* p = NULL:
string str(p);

(其他待补充)

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐