执行时提示: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid 可能原因: std::string 赋值错误 例如: string res = 0;