实现循环链表头文件

This commit is contained in:
2024-10-23 21:51:12 +08:00
parent 5e209ccb18
commit c9aed649b5
3 changed files with 48 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
//SeqQueue.h
#ifndef SEQQUEUE_H
#define SEQQUEUE_H
#define MAX_SIZE 100
typedef struct SeqQueue {
int data[MAX_SIZE];
int front, rear;
} SeqQueue;
void initSeqQueue(SeqQueue &q);
bool isEmpty(SeqQueue &q);
bool isFull(SeqQueue &q);
void enQueue(SeqQueue &q, int e);
int deQueue(SeqQueue &q);
#endif //SEQQUEUE_H