C++ basic_string::_M_construct null not valid

这个错误我在构造函数中爆出了错误

累坏我了

一般来说是赋值了不该赋的值  string 类型的初始化 用 int  结果炸了