上机实验二内容.pptxVIP

  • 2
  • 0
  • 约1.41千字
  • 约 26页
  • 2019-04-10 发布于山东
  • 举报
上机实验:链表;实验二:链表;实验二:链表(续);提示:相关头文件和链表数据类型定义 #include stdio.h #include malloc.h typedef struct node_type{ int data; struct node_type * next; }node_type; typedef struct list_type{ node_type *head; node_type *tail; int length; }list_type;;和顺序表的实验相似的,链表实验仍然需要完成下列一些函数: void create_list(list_type *table),该函数从键盘读入五个整数,按输入顺序形成单链表。 void show_list(list_type *table),该函数将链表元素依次输出到屏幕上。 void delete_list(list_type *table,int location),该函数将指定位置的链表节点删除。 void insert_list(list_type *table,int new_node,int location),该函数将新元素插入到指定位置上去。 void main(void),主函

文档评论(0)

1亿VIP精品文档

相关文档