数据结构 C语言版 作者 李云清 第01章_概论.pptVIP

  • 5
  • 0
  • 约2.62万字
  • 约 139页
  • 2015-12-10 发布于广东
  • 举报

数据结构 C语言版 作者 李云清 第01章_概论.ppt

node *init_hlink_list() { node *head; head=(node*)malloc(sizeof(node)); head-next=NULL; return head; } 算法3.10建立一个空的带头结点单链表 void print_hlink_list(node *head) { node *p; p=head-next;/*从第一个(实际)结点开始*/ if(!p) printf(\n带头结点单链表是空的!); else { printf(\n带头结点的单链表各个结点的值为:\n); while(p) { printf(%5d,p-info);p=p-next;} } } 算法3.11输出带头结点单链表中各个结点的值 /*****************************************************/ /* 在带头结点单链表中查找一个值为x的结点 */ /* 文件名hlnkfinx.c,函数名find_num_hlink_list() */ /*****************************************************/ node *fin

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档