auto ptr = new char[10]; delete ptr; delete 一个动态数组不能直接delete ptr, 应该是 delete[] ptr; 转载于:https://www.cnblogs.com/XDMrWu/p/4902684.html