05 2022 档案
摘要:二叉树的结构如图: 二叉树的存储实现: #include <stdio.h> #include <stdlib.h> // 定义结点数据类型 typedef struct TNode { char data; struct TNode *lChild, *rChild; int weight; //
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> // 定义结点数据类型 typedef struct LNode { int data; struct LNode *next; }LNode; // 定义链队数据类型 typedef struct { LNode *fr
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> #define maxSize 6 // 定义循环队列数据类型 typedef struct { int data[maxSize]; int front;// 队头指针 int rear;// 队尾指针 > 指向队尾元素
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> // 定义结点数据类型 typedef struct LNode { int data; // 数据域 struct LNode *next; // 指针域 }LNode, *LiStack; // 初始化链栈(带头结点)
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> #define maxSize 6 // 定义顺序栈数据类型 typedef struct { int data[maxSize]; int top; }SqStack; void initSqStack(SqStack
阅读全文
浙公网安备 33010602011771号