able; 10 struct ShiyanEquip * p,* head,* tail; head=tail=NULL; printf(" 录入实验器材的信息.....\n"); printf("= 输入实验器材的编号, 类型, 名称, 价格, 购入时间, 报废时间, 是否可用(0: 报废;1: 可用)=\n"); scanf("%d%s%s%lf%d%d%d",&num,type,name,&price,&btime,&otime,&able); while ( num != 0) { p=(struct ShiyanEquip *)malloc(SIZE); p->num=num; strcpy(p->type,type); strcpy(p->name,name); p->price=price; p->btime=btime; p->otime=otime; p->able=able; p->next = NULL; if (head == NULL) head = p; else tail->next = p; tail = p; printf("= 输入实验器材的编号, 类型, 名称, 价格, 购入时间, 报废时间, 是否可用(0: 报废;1: 可用)=\n"); scanf("%d%s%s%lf%d%d%d",&num,type,name,&price,&btime,&otime,&able); } return head; } struct ShiyanEquip * InsertNode (struct ShiyanEquip * head,struct ShiyanEquip *newin) // 插入节点{ struct ShiyanEquip * pt1,* pt2; pt1=head; pt2=newin; if (head == NULL)