#include "stdafx.h"
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int *i_p = new int[5];
//delete i_p; //1
delete []i_p; //2
string *s_p = new string[5];
// delete s_p; //3
delete []s_p; //4
return 0;
}
在VS2005中,代码1、2,都没问题,同样是3和4的话,就出问题了
搞不懂深层是什么原因,高手请指教