变长数组的实现
struct bianchangsuzhu
{
int len;
int array[];
};
struct bianchangsuzhu *p;
int len;
scanf("%d",&len);
p->len=len;
for (int i = 0; i < p->len; i++)p->array[i]=i+1;
}
变长数组的实现
struct bianchangsuzhu
{
int len;
int array[];
};
struct bianchangsuzhu *p;
int len;
scanf("%d",&len);
p->len=len;
for (int i = 0; i < p->len; i++)p->array[i]=i+1;
}