-
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
-
eXtremeDB与# 39;的示例代码,对你有用!!
extremeDB s sample code,useful for you-extremeDB"s sample code, useful for you! !
- 2022-11-07 18:50:04下载
- 积分:1
-
用API改变ACCESS窗口的背景的例程
用API改变ACCESS窗口的背景的例程-Using API to change the window background ACCESS routines
- 2023-03-31 23:35:03下载
- 积分:1
-
这个源程序是关于无向图的邻接表生成和显示的,可以用这个程序实现...
这个源程序是关于无向图的邻接表生成和显示的,可以用这个程序实现-the source of the undirected graph generation and adjacent table shows, this procedure can be used to achieve
- 2022-01-25 21:49:30下载
- 积分:1
-
tree traversal of the four, China and Syria, the former sequence after sequence...
树的四种遍历方式,中叙,前序,后序和按层遍历算法,前三个用递归很好实现,最后一个复杂点。-tree traversal of the four, China and Syria, the former sequence after sequence and by layer traversal algorithm, the former three Recursive properly achieved, Finally a complex point.
- 2022-08-17 13:05:30下载
- 积分:1
-
学生成绩信息管理系统的源代码及运算结果和分析
学生成绩信息管理系统的源代码及运算结果和分析-Student performance information management system" s source code and the calculation results and analysis
- 2022-01-25 20:56:18下载
- 积分:1
-
基于C语言的各种典型排序算法:插入排序,气泡排序,希尔排序,快速排序,选择排序。可以用VC直接编译运行。...
基于C语言的各种典型排序算法:插入排序,气泡排序,希尔排序,快速排序,选择排序。可以用VC直接编译运行。-Based on the C language provides a variety of sorting algorithms: insertion sort, bubble sort, Shell sort, quick sort, selection sort. VC can be directly translated to run.
- 2022-01-24 09:36:26下载
- 积分:1
-
This is a server
这是聊天系统的服务器端,它控制客户端程序的登录和连接,采用ACCE-This is a server-side chat system, which controls the client program to log in and connect, using ACCE
- 2023-07-13 02:20:02下载
- 积分:1
-
data structure to achieve the java
数据结构的java实现-data structure to achieve the java
- 2022-01-22 16:06:20下载
- 积分:1
-
vfp表单,动态创建数据库。(压缩文件)
vfp表单,动态创建数据库。(压缩文件)-Probe form, dynamic creation of the database. (Compressed files)
- 2023-01-19 22:50:03下载
- 积分:1