-
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
-
一个算法问题包括,一些数据结构的算法,全部是已经编译通过的源码,且是我自己写的!...
一个算法问题包括,一些数据结构的算法,全部是已经编译通过的源码,且是我自己写的!- An algorithm question includes, some constructions of data
algorithms, completely were already translated through the source
codes, was precisely I writes!
- 2022-08-22 04:53:11下载
- 积分:1
-
SWGL business manage system
swgl商务管理系统-SWGL business manage system
- 2022-06-29 21:34:05下载
- 积分:1
-
Infix expression to Reverse Polish conversion of program code, learning data str...
中缀表达式到逆波兰式转换的程序代码,学习数据结构的可以-Infix expression to Reverse Polish conversion of program code, learning data structures can be
- 2022-10-19 05:20:03下载
- 积分:1
-
严蔚敏编写的《数据结构》第9章的答案,全部为源码
严蔚敏编写的《数据结构》第9章的答案,全部为源码-the answers of chapter 9 of a book called ‘Data Structures’ writen by Yan Wei Min
- 2022-04-10 20:24:10下载
- 积分:1
-
用pb做的职员管理
用pb做的职员管理-pb do with the management staff
- 2022-11-10 23:20:03下载
- 积分:1
-
WinMain 函数的初级代码
资源描述本代码比较适合初学者,刚接触过C++语言的童鞋,对代码不是怎么懂,可以参考学习。
- 2022-02-04 14:15:25下载
- 积分:1
-
二叉树的动态链表存储结构及表示,二叉树的三种遍历算法(递归和非递归两类)运用二叉树三种遍历的方法求解有关问题...
二叉树的动态链表存储结构及表示,二叉树的三种遍历算法(递归和非递归两类)运用二叉树三种遍历的方法求解有关问题-Binary tree structure and the dynamics of linked list is stored, said three kinds of binary tree traversal algorithms (recursive and non-recursive types) the use of three kinds of binary tree traversal of the method for solving the problem
- 2022-04-11 18:58:18下载
- 积分:1
-
串的Replace函数
串的Replace函数-Series Replace function
- 2022-07-13 06:57:19下载
- 积分:1
-
这是一个用于计算最小生成树的程序。当人们逐个输入每条边的权,再点击生成,便能得到这个图的最小生成树。
这是一个用于计算最小生成树的程序。当人们逐个输入每条边的权,再点击生成,便能得到这个图的最小生成树。-This is a used to calculate the minimum spanning tree procedure. When people enter one by one each side of the right, then click generate, will be able to get this graph minimum spanning tree.
- 2022-04-26 22:15:50下载
- 积分:1