#include<stdio.h>
#include<malloc.h>
#define max 50
struct array
{
int *base;
int length;
};
void main()
{
int count,*p,i,n;
struct array *s;
s = (struct array *)malloc(sizeof(struct array)*max);
while(scanf("%d",&count)==1)
{
if(count==0)
break;
for(i=0;i<count;i++)
{
scanf("%d",&n);
s->base[i] = n;
}
}
}
动态数组(指针)
最新推荐文章于 2024-02-05 12:08:44 发布