/* title: 实现环形队列各种基本运算的算法(用顺序结构)
Time:2018-2-2
Author:邹吉祥
School:imnu
*/
#include<stdio.h>
#include<malloc.h>
#define MaxSize 100
typedef char ElemType;
typedef struct{
ElemType data[MaxSize];
int Front,Rear; //队头Front,队尾Rear;
}SqQueue;
void InitSqQueue(SqQueue*& q){
q=(SqQueue*)malloc(sizeof(SqQueue));
q->Front=0;
q->Rear=0;
}
实现环形队列各种基本运算的算法(用顺序结构)
最新推荐文章于 2024-04-17 15:06:13 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)