指针 new delete

时间:2014-07-22 23:14:55   收藏:0   阅读:248

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

int *p=new(10);

创建空间,指向10,

int* p=new[10];

 创建数组空间

 

指针 new delete,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!