动态分配内存

1、数组

int p[1000];

p=new int[1000];

或者 p=(int*)malloc(1000*sizeof(int));

posted @ 2019-10-30 12:58  Tomorrow1126  阅读(87)  评论(0编辑  收藏  举报