摘要: int * p1=new int; int *p2=new int(2); //*p2初始化值是2 int *p3=new int[1000] //申请1000个单位内存空间 delete p1; delete p2; delete[] p3; //注意此处不能用delete p3,因为在申请用了[ 阅读全文
posted @ 2016-03-08 15:53 dreamer123 阅读(126) 评论(0) 推荐(0) 编辑