C语言静态链表.docxVIP

  • 5
  • 0
  • 约1.03万字
  • 约 25页
  • 2019-05-19 发布于湖北
  • 举报
#include stdio.h #include windows.h #define MAXSIZE 100 //链表长度 typedef char ElemType; typedef struct { ElemType data; //存储数据 int cur; //存储游标值 }component,SLinkList[MAXSIZE]; void InitSpace(SLinkList L); /* 1、函数功能:建立备用链表*/ int InitList(SLinkList L); /* 2、函数功能:构造空链表;返回值:空表在数组中的位置*/ int Malloc(SLinkList space); /* 3、函数功能:链表非空就返回备用链表的第一个结点,否则返回0*/ void ScheFunc(); /* 4、函数功能:打印进度条*/ bool ListEmpty(SLinkList L, int n); /* 5、函数功能:判断L中表头位序为n的链表是否空*/ int ListLength(SLinkList L, int n); /* 6、函数功能:计算表头为n的链表的长度*/ bool Li

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档