遇见: std::string* p = new std::string[100]; 请用: delete[] p; 用delete p;会出现内存错误。 所以对于数组指针,拒绝使用typedef(typdedef string ADD[4];) 避免销毁异常。 赞微海报分享
近期评论