错误:terminate called after throwing an instance of 'std::logic_error'
 what():  basic_string::_S_construct NULL not valid

<mark>解决方式:c++和java不一样,string不允许接收NULL,注意看有没有这种操作,如果有要换成""</mark>

错误:terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::at

<mark>解决方式:c++string种的at方法是会抛异常的,比如不能够干这样的事:str.at(i) == 0,就是试图用at方法判断是不是末尾0,可以改成操作符[]访问,或者用迭代器。同时这种错误还有另外一种可能就是将空的字符串""压入向量vector时也会有这个错误</mark>