terminate called after throwing an instance of ‘std::logic_error‘ what(): basic_string::_M_constr

terminate called after throwing an instance of ‘std::logic_error’
what(): basic_string::_M_construct null not valid

用0初始化字符串 编译不报错

在这里插入图片描述


版权声明:本文为weixin_43862733原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。