-
c++链式队列的实现
c++链式队列的实现头文件如下:
typedef int Item;
typedef struct node * PNode;
typedef struct node
{
Item data;
PNode next;
}Node;
typedef struct
{
PNode front;
PNode rear;
int size;
}Queue;
/*构造一个空队列*/
Queue *InitQueue();
/*销毁一个队列*/
void DestroyQueue(Queue *pqueue);
/*清空一个队列*/
void ClearQueue(Queue *pqueue);
/*判断队列是否为空*/
int IsEmpty(Queue *pqueue);
/*返回队列大小*/
int GetSize(Queue *pqueue);
/*返回队头元素*/
PNode GetFront(Queue *pqueue,Item *pitem);
/*返回队尾元素*/
PNode GetRear(Queue *pqueue,Item *pitem);
/*将新元素入队*/
PNode EnQueue(Queue *pqueue,Item item);
/*队头元素出队*/
PNode DeQueue(Queue *pqueue,Item *pitem);
/*遍历队列并对各数据项调用visit函数*/
void QueueTraverse(Queue *pqueue,void (*visit)());
- 2023-09-04 20:50:03下载
- 积分:1
-
一个有用的数据库操作程序(用jubilder)
一个有用的数据库操作程序(用jubilder)-a useful database operations (using jubilder)
- 2022-06-21 13:08:34下载
- 积分:1
-
网上购物数据库,所有代码都有,包括模型图
网上购物数据库,所有代码都有,包括模型图 -Online Shopping Database
- 2023-08-14 04:35:03下载
- 积分:1
-
医院管理系统
这个医院管理系统管理病人信息、 人员信息、 商店和药品、 计费并生成报告。这个复杂的应用程序与后端数据库服务器进行通信和管理医院物流相关的所有信息。
- 2023-01-12 12:10:04下载
- 积分:1
-
简单的搜索引擎
它是基本的 C 编程概念和文件处理中的应用。
使用此应用程序用户可以搜索各种文件在系统内。打开该文件。读它。计算总的行在它和许多这类功能。
- 2022-12-06 06:10:03下载
- 积分:1
-
a simple binary tree algorithm, including the binary tree traversal, but also ad...
一个最简单的二叉树的算法,包括二叉树的各种遍历,还添加了队列的层序遍历-a simple binary tree algorithm, including the binary tree traversal, but also adds a layer of Queue preorder
- 2022-02-15 00:00:29下载
- 积分:1
-
Design Paterns
程序展示了C++程序的现代设计模式。设计模式是重用设计解决方案的方法
- 2022-04-19 23:24:49下载
- 积分:1
-
6个经典数据结构JAVA解法,供学习。
6个经典数据结构JAVA解法,供学习。-six classic data structures Java Solution for learning.
- 2023-03-06 08:35:03下载
- 积分:1
-
这是数据结构的哈夫曼的实验报告
这是数据结构的哈夫曼的实验报告-This is the data structure of the experimental report Huffman
- 2022-05-31 06:25:03下载
- 积分:1
-
本程序实现了败者树等外排序方式,封装性好,代码强壮
本程序实现了败者树等外排序方式,封装性好,代码强壮-program of the master tree outer Sort, Packaging and good strong code
- 2022-08-12 15:25:27下载
- 积分:1