-
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
-
一个数据结构的大作业
一个数据结构的大作业-a data structure of operation
- 2022-06-03 13:18:04下载
- 积分:1
-
这是一个练习链表的扑克牌程序,可以自动发牌,比较大小。如果想和计算机对战,只需要稍微改动一下程序即可。...
这是一个练习链表的扑克牌程序,可以自动发牌,比较大小。如果想和计算机对战,只需要稍微改动一下程序即可。-This is a practice Chain cards procedures, it will automatically licensing, size comparison. If you want to, and computer war, only slightly modifying procedures.
- 2023-04-09 10:40:03下载
- 积分:1
-
Qt数据库操作
Qt对数据库操作,包括数据库打开与关闭,增加、删除、修改、查询,其中数据的展示是用自定义数据模型,是从QAbstractTableModel继承起的。
- 2022-03-03 10:17:11下载
- 积分:1
-
数据结构哈夫曼实习报告
数据结构哈夫曼实习报告-data structure Huffman internship report
- 2022-07-14 01:34:53下载
- 积分:1
-
先验算法
&这个项目是用C语言编写的。它描述了apriori算法、关联规则、数据挖掘的简单实现;
- 2023-01-29 14:25:04下载
- 积分:1
-
数据结构停车场实习报告
数据结构停车场实习报告-data structure parking internship report
- 2022-10-20 12:45:08下载
- 积分:1
-
Is a data structure in the learning plan to prepare the structure, is mainly use...
是一个在学习数据结构时编写的图结构,主要是用两种方法生成需要的图结构,其中有一个头文件都注释了,要是要使用的话,只需要将另一个头文件注释并把这个取消注释,在main方法中改一个类名就好了-Is a data structure in the learning plan to prepare the structure, is mainly used two methods to generate the need for the graph structure, in which there is a header file are annotated, if you want to use words, just another header file to the Notes and the cancellation of Notes, in the main method to a class name like the
- 2023-04-02 18:10:04下载
- 积分:1
-
几种常用排序算法的效率比较,通过测试可得出这几种排序算法的优劣....
几种常用排序算法的效率比较,通过测试可得出这几种排序算法的优劣.-several commonly used algorithm efficiency comparison, the test may come this algorithm several merits.
- 2022-03-15 07:57:19下载
- 积分:1
-
此程序为一个简单的oracle数据库程序,用于学生信息与课程成绩对应...
此程序为一个简单的oracle数据库程序,用于学生信息与课程成绩对应-This procedure as a simple oracle database for student information and curriculum corresponding results
- 2022-05-20 08:44:19下载
- 积分:1