![](https://img-blog.csdnimg.cn/20190927151124774.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
数据结构
学习总结
Sonder。
这个作者很懒,什么都没留下…
展开
-
链表及其相关函数(代码)
LinkList.h #ifndef LINKLIST_H #define LINKLIST_H #include <stdio.h> #include <stdlib.h> #include <time.h> #define SUCCESS 10000 #define FAILURE 10001 typedef int ElemType;...原创 2019-08-04 19:44:31 · 204 阅读 · 0 评论 -
链表及其相关函数(理解总结)
链表代码链接 int InitLink(pNode *h) 函数功能:链表初始化 函数参数:头指针的地址 函数返回值:成功返回success,失败返回failure 链表初始化即为给头结点分配空间并初始化指针域。在定义头指针后它还是个野指针,给它分配空间就会得到一个新地址,所以需要传指针的指针来进行指针值修改。 int InsertLink(pNode h, int p, int num)...原创 2019-08-04 19:50:18 · 627 阅读 · 1 评论 -
链表及其相关函数(理解总结)
链表代码链接 int InitLink(pNode *h) 函数功能:链表初始化 函数参数:头指针的地址 函数返回值:成功返回success,失败返回failure 链表初始化即为给头结点分配空间并初始化指针域。在定义头指针后它还是个野指针,给它分配空间就会得到一个新地址,所以需要传指针的指针来进行指针值修改。 int InsertLink(pNode h, int p, int num)...转载 2019-08-04 19:54:20 · 595 阅读 · 0 评论