24 lines
329 B
C
24 lines
329 B
C
//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
|