-
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
-
这是我上学期的课程操作系统的设计和一个多
这是我上个学期操作系统的课程设计,做了一个多级文件系统,用文件模拟磁盘,基于i节点结构,功能超强,希望对大家有用。-This is my last semester of courses operating system design and a multi-level file system, disk using simulated document, based on i node structure, function superpower, we hope that the right useful.
- 2022-02-13 06:28:16下载
- 积分:1
-
旅行商问题:
某售货员要到若干城市去推销商品,已知各城市之间的路程(或旅费)。他要选定一条从驻地出发,经过每个城市一遍,最后回到驻地的路线,使总的路程(或旅...
旅行商问题:
某售货员要到若干城市去推销商品,已知各城市之间的路程(或旅费)。他要选定一条从驻地出发,经过每个城市一遍,最后回到驻地的路线,使总的路程(或旅费)最小。-traveling salesman problem : A salesman to a number of cities to sell commodities, known the distance between cities (or travel). He selected from a resident, after each city again, the last resident to return to the line, making the total distance (or travel) is the smallest.
- 2023-07-26 02:35:04下载
- 积分:1
-
数据结构常用数据结构
数据结构常用数据结构-队列,包含队列的常用操作和class类,基本的结构类型-data structure used data structure- queue, the queue contains commonly used operation and class category, the basic structure types
- 2022-06-30 12:36:29下载
- 积分:1
-
三菱FX PLC编程口实现通讯(FX
VB6与三菱FX PLC 编程口通讯(遍历读FX-PLC的映象区)字号
操作状态CommExit: 0通讯进行状态,通讯被打断
通讯状态CommEnd:开始发送和等待接收,>1:接收串已结束-VB6 with Mitsubishi FX PLC Programming mouth communications (FX-PLC read traversal of the image area) to operate a state-established CommExit: 0 communication status, communication was interrupted communication state CommEnd: to start to send and waiting to receive,
- 2022-05-14 03:12:39下载
- 积分:1
-
一个压缩算法, 名字叫PPMD,压缩率比较高, 同时, 可以自行修改并编译,请各位研究算法的同僚一同研究....
一个压缩算法, 名字叫PPMD,压缩率比较高, 同时, 可以自行修改并编译,请各位研究算法的同僚一同研究.-a compression algorithm, named PPMD, higher compression ratio, and can make its own decisions and build, please algorithm research colleagues to study together.
- 2022-06-17 22:22:38下载
- 积分:1
-
数据结构编写管理系统
数据结构编写管理系统-prepared data structure management system
- 2022-07-02 07:04:34下载
- 积分:1
-
用于实现数据结构的基本算法的任务分配功能
用数据结构实现基本算法 用C++实现任务分配功能-data structure used to achieve basic algorithm C Task allocation functions
- 2022-03-04 14:24:09下载
- 积分:1
-
图论中二分图匹配求最佳匹配的KM算法,用c实现,简单易懂
图论中二分图匹配求最佳匹配的KM算法,用c实现,简单易懂-Graph Theory in the bipartite graph matching the best match for KM algorithm, with c realize, easy-to-read
- 2022-09-24 04:50:02下载
- 积分:1
-
同一个数据库开发的系统,有源代码和发布版本
同一个数据库开发的系统,有源代码和发布版本-with a database development systems, and active code releases
- 2022-05-17 05:06:43下载
- 积分:1