实现循环单链表表各种基本运算算法.docVIP

  • 29
  • 0
  • 约5.13千字
  • 约 5页
  • 2017-06-25 发布于湖北
  • 举报

实现循环单链表表各种基本运算算法.doc

实验目的:题目: #include stdio.h #include conio.h #include stdlib.h #include windows.h struct node { char c; struct node *next; }; struct node *head,*tail,*p,*q,*r; int cut1=0; void show() { printf(\n\n\t\t\t\t欢 迎 使 用!); printf(\n\n\t\t\t1、加入元素); printf(\n\n\t\t\t2、输出全部元素和元素个数); printf(\n\n\t\t\t3、输出特定元素位置); printf(\n\n\t\t\t4、输出特定位置元素); printf(\n\n\t\t\t5、在特定位置插入元素); printf(\n\n\t\t\t6、删除特定位置元素); printf(\n\n\t\t\t7、删除全部元素); printf(\n\n\t\t\t0、退出); printf(\n\n\t\t请输入:); } void chu() { head=(struct node*)malloc(sizeof(struct node)); head-next=NU

文档评论(0)

1亿VIP精品文档

相关文档