// bo2-9.cpp 单链表线性表(存储结构由c2-2.h定义)的扩展操作(11个) void InsertAscend(LinkList L,ElemType e) { // 初始条件:按非降序排列的线性表L已存在。操作结果:在L中按非降序插入新…
linklist 源代码
LinkList,一种高效灵活的数据结构,广泛应用于电子系统设计与软件开发中,尤其在嵌入式系统、数据库管理及算法实现等领域展现出强大优势。通过本页面精心挑选的12个资源,您将深入了解链表的工作原理、优化技巧及其在实际项目中的应用案例。无论是初学者还是经验丰富的工程师,都能在这里找…
// algo2-5.cpp 实现算法2.11、2.12的程序 #include"c1.h" typedef int ElemType; #include"c2-2.h" #include"bo2-2.cpp" void CreateL…
// bo2-2.cpp 单链表线性表(存储结构由c2-2.h定义)的基本操作(12个) Status InitList(LinkList &L) { // 操作结果:构造一个空的线性表L L=(LinkList)malloc(sizeof(L…
// algo2-12.cpp 用单链表实现算法2.1,仅有4句与algo2-1.cpp不同 #include"c1.h" typedef int ElemType; #include"c2-2.h" // 此句与algo2-1.cpp不同(因为采…
// bo2-6.cpp 具有实用意义的线性链表(存储结构由c2-5.h定义)的24个基本操作 Status MakeNode(Link &p,ElemType e) { // 分配由p指向的值为e的结点,并返回OK;若分配失败。则返回ERROR …
// c2-6.h 抽象数据类型Polynomial的实现 typedef struct // 项的表示,多项式的项作为LinkList的数据元素 { float coef; // 系数 int expn; // 指数 }term,…
// file : list.h #ifndef _LIST_H_ #define _LIST_H_ #include "com_def.h" typedef enum // 共5类事件 { NEWGUEST = 0, L…
// file: List.c #include "list.h" #include bool InitList(Linklist *L) { L->head = L->tail = (evt_node *)malloc(sizeo…
#include const ok=1; const error=0; const overlow=0; const underlow=0; const yes=1; const no=0; typedef struct L…
// LinkDlg.cpp : implementation file // #include "stdafx.h" #include "DB05.h" #include "LinkDlg.h" #include "IntList.h" …