📄 loop_queue.h
字号:
#ifndef _LOOP_QUEUE_H_
#define _LOOP_QUEUE_H_
#include "typedefine.h"
#include "constant.h"
typedef ElemType QUEUE_ELEMENT_TYPE;
typedef struct LOOP_QUEUE{
QUEUE_ELEMENT_TYPE data[MAX_QUEUE_SIZE];
SIZE_T front; /* head pointer of the queue */
SIZE_T rear; /* tail pointer of the queue */
}LOOP_QUEUE, * PLOOP_QUEUE;
PLOOP_QUEUE CreateLQueue();
BOOL DestroyLQueue(PLOOP_QUEUE *);
BOOL EnLQueue(PLOOP_QUEUE, QUEUE_ELEMENT_TYPE);
BOOL DeLQueue(PLOOP_QUEUE, QUEUE_ELEMENT_TYPE *);
BOOL LQueueEmpty(PLOOP_QUEUE);
BOOL LQueueFull(PLOOP_QUEUE);
SIZE_T LQueueLength(PLOOP_QUEUE);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -