建立动态大小的数组

int N;

cin>>N;

int* p=new int[n];

在调用数组里的元素时,用*(p+i)

在以整个数组为参数时,用p

posted @ 2013-06-02 14:30  米其林轮船  阅读(235)  评论(0)    收藏  举报