1 Star 0 Fork 0

Baymax小振 / QueuePractice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ArrayQueue.h 568 Bytes
一键复制 编辑 原始数据 按行查看 历史
Baymax小振 提交于 2021-04-25 22:51 . 完善了循环队列
/**
*@Description
*@Author Jake
*@email wzy1048168235@163.com
*@Date 2021/3/3 11:30
*@Version
*/
#ifndef QUEUE_ARRAYQUEUE_H
#define QUEUE_ARRAYQUEUE_H
#include<stdio.h>
#include"stdlib.h"
#include "string.h"
#define MAXSIZE 10
typedef struct queue
{
int *data;
int front;
int rear;
}Queue;
void enqueue(Queue *queue,int data);
int dequeue(Queue *queue);
void initQueue(Queue *queue);
void create(Queue *queue);
void printQueue(Queue *queue);
void project(Queue *queue);
int isEmpty(Queue *queue);
int isFull(Queue *queue);
#endif //QUEUE_ARRAYQUEUE_H
C
1
https://gitee.com/baymax104/queue-practice.git
git@gitee.com:baymax104/queue-practice.git
baymax104
queue-practice
QueuePractice
master

搜索帮助