登录
首页 » 数据结构 » c++链式队列的实现

c++链式队列的实现

于 2023-09-04 发布 文件大小:1.17 kB
0 40
下载积分: 2 下载次数: 1

代码说明:

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)());

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 用VB6创建的家庭地址簿程序。制作该程序的主要目的是用来为家庭中的每个成员存储个人地址信息。而且该程序的用户设定为两个类型级别:即1管理型、2用户型...
    用VB6创建的家庭地址簿程序。制作该程序的主要目的是用来为家庭中的每个成员存储个人地址信息。而且该程序的用户设定为两个类型级别:即1管理型、2用户型-built with VB6 family address book procedures. The production process is the main purpose for the family members of each of the addresses stored personal information. And the procedures set of users for the two types of levels : that is a management-type, two-users
    2022-03-15 13:23:06下载
    积分:1
  • 计算机科班学生的课写的查找算法。
    计算机科班学生的数据结构课写的查找算法。-computer classes to the students to write data structure classes of search algorithms.
    2022-03-17 00:06:02下载
    积分:1
  • 学生管理系统
    这是一个完整的学生管理系统,就奖学金那一模块需添加一个窗口判断。非常适合学习以及用于毕业设计。
    2022-12-06 14:25:06下载
    积分:1
  • uart 块核心
    uart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreu
    2023-01-14 08:25:03下载
    积分:1
  • 一个微型的库系统
    一个微型的数据库系统--A mini database system
    2022-05-14 00:09:01下载
    积分:1
  • c++最小生成树顶点路径长度及路径计算
    文件 a.txt为 输入文件,包括 顶点 和 顶点之间的距离。 文件 b.docx为图示。 输出 距离“999999”表示两点之间没有边。
    2022-07-10 17:50:46下载
    积分:1
  • 实现一个库的连接池,提高库的链接效率,同时还有利于平衡物理上的访问量。...
    实现一个数据库的连接池,提高数据库的链接效率,同时还有利于平衡物理上的访问量。-Implement a database connection pool to improve the efficiency of the database links, while also help balance the amount of physical access.
    2023-04-24 23:15:04下载
    积分:1
  • compiler to use the shortest path, a class definition, and then the right type a...
    编译程序时使用最短路径,定义类,然后对类的实现,找出最短路径!-compiler to use the shortest path, a class definition, and then the right type and to find the shortest path!
    2023-02-18 20:20:02下载
    积分:1
  • 考试的样题,对考试很有帮助。里面是BMP文件。
    数据结构考试的样题,对考试很有帮助。里面是BMP文件。-Data structure sample exam questions on the exam very helpful. Inside is a BMP file.
    2022-02-13 12:14:32下载
    积分:1
  • postgis源码
    PostGIS 是一个开源程序,它为对象-关系型数据库PostgreSQL提供了存储空间地理数据的支持,使PostgreSQL成为了一个空间数据库,能够进行空间数据管理、数量测量与几何拓扑分析。PostGIS 实现了Open Geospatial Consortium所提供的Simple Features的SQL实现参考。
    2023-04-18 02:30:04下载
    积分:1
  • 696524资源总数
  • 103939会员总数
  • 12今日下载