首页 > 代码库 > 指针 new delete

指针 new delete

http://www.cnblogs.com/hazir/p/new_and_delete.html

int *p=new(10);

创建空间,指向10,

int* p=new[10];

 创建数组空间