用c语言编写程序,实现单链表的建立(数据元素为1,2,3,4,5,6),遍历,查...答:// 删除 void del(struct node *a){ struct node *tmp;while (a){ tmp = a;a = a->next;free(tmp);} } int main(void){ struct node *a = create();struct node *b = (struct node*)malloc(sizeof(struct node));b->val = 9;foo(a);insert(a, b, 3);foo(a);del(a)...
...从a中删除那些在b中存在的节点。求如上题用C语言写的程序!要用链表...答:{102,"li"},{103,"wang"},{104,"niu"},{105,"liu"}}; struct student b[LB]={{103,"zhu"},{105,"huang"},{106,"zhao"},{107,"qian"}}; struct student *heada,*headb,*pa1,*pa2,*pb1; int i; heada=a;//指向a链表 headb=b;...