#ifndef QUEUE
#include <iostream>
using namespace std;
typedef int ElemType;
typedef bool Status;
typedef struct QNode {
ElemType data;
QNode* next;
}QNode,*QueuePtr;
typedef struct {
QueuePtr front;
QueuePtr rear;
}LinkQueue;
Status InitQueue(LinkQueue *Q) {
Q->front = Q->rear = (QueuePtr)malloc(sizeof(QNode));
if (!Q->front)
exit(OVERFLOW);
Q
队列
最新推荐文章于 2017-09-18 16:33:06 发布