(8.5)--8.5 动态链表插入、查找和删除.pptVIP

  • 3
  • 0
  • 约1.44千字
  • 约 14页
  • 2024-01-28 发布于陕西
  • 举报

链表的插入、查找和删除

主要内容链表的插入12链表的查找3链表的删除

1链表的插入链表的插入找到插入位置、链入链表头插法尾插法

1链表的插入head10189.51029010385NULLp1=(structstudent*)malloc(LEN);scanf(%d%f,p1-num,p1-score);p2=head;while(p2-next!=NULL) p2=p2-next;p2-next=p1;p1-next=NULL;p110189.510290.010385.010475p2p2p2NULL10475.0尾插法

1链表的插入head10189.51029010385NULLp1=(structstudent*)malloc(LEN);scanf(%d%f,p1-num,p1-score);p1-next=head;head=p1;p110475头插法

1链表的插入head10189.51029010385NULLp1=(structstudent*)malloc(LEN);scanf(%d%f,p1-num,p1-score);p1-next=head;head=p1;p110475头插法

1链表的插入headp1=(structstudent*)malloc(LEN);scanf(

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档