动态数组

定义:

  int *p=new int[lenth];//lenth可以由用户输入,所以叫动态

操作:

  p[i]。

回收:

  delete []p;

posted @ 2016-09-19 22:32  朱小勇  阅读(91)  评论(0编辑  收藏  举报