effective c++数组指针销毁(43)

遇见:

std::string* p = new std::string[100];
请用:     delete[] p;
用delete p;会出现内存错误。
所以对于数组指针,拒绝使用typedef(typdedef string ADD[4];) 避免销毁异常。