blob: e444632de7cb681887ee41e47727acc7dac9c6fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef _QUEUE_H
#define _QUEUE_H
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
typedef char ElemType;
typedef struct queue {
ElemType data;
struct queue * next;
} Queue;
typedef Queue * pqueue;
void InitQueue (pqueue * q);
bool EnQueue (pqueue * qtail, ElemType * e);
bool DeQueue (pqueue * qhead, ElemType * e);
bool RsQueue (pqueue * qhead);
bool EmptyQueue (pqueue * qhead);
bool PrintQueue (pqueue * qhead);
#endif
|