delete问题
#include "stdafx.h"#include <iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ char *p=new char[30]; p="I love you"; cout<<p<<endl; delete[] p; //此处出错; p=NULL; return 0;}