33,311
社区成员
发帖
与我相关
我的任务
分享
void Create_Store(int numberof,struct struction * allbeginning)
//numberof 为需要单位个数,allbeginning 为预留的链表开头
{
int timer=1;
struct struction * arralla=(struct struction *)malloc(sizeof(struct struction));
allbeginning=arralla;
while(timer<numberof)
{
arralla->arrnext=(struct struction *)malloc(sizeof(struct struction));
(arralla->arrnext)->arrlast=arralla;
arralla=arralla->arrnext;
timer++;
}
void Create_Store(int numberof,struct struction * allbeginning,struct struction * arralla)
//numberof 为需要单位个数,allbeginning 为预留的链表开头
{
int timer=1;
arralla=(struct struction *)malloc(sizeof(struct struction));
allbeginning=arralla;
allbeginning->arrlast=NULL;
while(timer<numberof)
{
arralla->arrnext=(struct struction *)malloc(sizeof(struct struction));
(arralla->arrnext)->arrlast=arralla;
(arralla->arrnext)->arrnext=NULL;
arralla=arralla->arrnext;
timer++;
}