首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > c++链式队列的实现

c++链式队列的实现

  • 资源大小:1.17 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 数据结构 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)());

文 件 列 表

code.c
VIP VIP
  • 壹零叁 1天前 成为了本站会员

  • blown 1天前 成为了本站会员

  • 归山 1天前 成为了本站会员

  • 星空 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 深蓝 1天前 成为了本站会员

  • 拉特兰公证所 2天前 成为了本站会员

  • 苍狼 2天前 成为了本站会员

  • 右手 2天前 成为了本站会员

  • 旺仔 2天前 成为了本站会员

0.185075s