李致远 高级光能 keyide delete只能与new配合使用,如释放的是非数组空间,直接用delete 该指针(int *p;p=new int;delete p;), 若为数组空间则delete []该指针(int *p;p=new int[5];delete []p;)。