![](https://img-blog.csdnimg.cn/9226accfbd3f453d90477891319d97b8.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
数据结构
数据结构实践,参考《数据结构 严蔚敏》
Herk (ง •̀_•́)ง
工大小学生
展开
-
【线性表】线性表的指针实现 单链表的基本操作 两个单链表的合并归并
目录 1.单链表的基本操作 2.单链表的进阶操作 2.1两个单链表的合并 2.2复制一个单链表 2.3删除单链表中值为x的结点 3.综合示例 1.单链表的基本操作 #include <iostream> using namespace std; typedef int Elemtype; typedef struct LinkNode { Elemtype data; LinkNode *next; } LinkNode, *LIST, *Node; voi原创 2021-10-24 20:00:40 · 686 阅读 · 0 评论 -
【线性表】单链表的运用 多项式的代数运算
目录 1.多项式的创建和打印 2.多项式的相加相乘 3.多项式示例 1.多项式的创建和打印 #include <iostream> using namespace std; typedef struct PolyNode { int coef; //系数 int expn; //指数 PolyNode *next; } *LIST, *Node; void CreatPolyList(LIST &L, int n) { Node node,原创 2021-10-24 20:07:25 · 127 阅读 · 0 评论 -
【线性表】双向链表的基本操作 指定结点交换
目录 1.双向链表的基本操作 2.双向链表的创建和打印 3.指定值为x的结点与其前驱结点交换 1.双向链表的基本操作 #include <iostream> using namespace std; typedef int Elemtype; typedef struct LinkNode { Elemtype data; LinkNode *next, *previous; } * DLIST, *Node; void Delete(Node p) { //删除原创 2021-10-24 20:13:51 · 2393 阅读 · 0 评论