摘要:
//循环队列---队列的顺序表示和实现#include#include#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define MAXQSIZE 50... 阅读全文
摘要:
//循环队列---队列的顺序表示和实现#include#include#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define MAXQSIZE 50... 阅读全文
摘要:
//队列的一些基本操作/* 1,构造一个空队列InitQueue(LinkQueue &Q) 2,销毁队列Q 3,将Q清为空队列 4,若队列Q为空队列,则返回TRUE,否则返回FALSE 5,返回Q元素的个数,即队列的长度 6,返回队列的队头元素 7,插入e为队列的新的队尾元素 8,删除队列的队头元... 阅读全文
|