优先队列 源代码

汇集 优先队列 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。

收录资源 500 份 全站深度检索
源码文件

//顺序循环队列的类定义queue2.h //最大队列长度 #define QueueSize 10 typedef int datatype; class cirqueue{ private: //队列头指针,若队列不空则指向队列头元素 …

源码文件

//顺序循环队列的类定义queue1.h #define QueueSize 10 typedef int datatype; class cirqueue{ private: int front; int rear; int co…

源码文件

// SmsTraffic.h: interface for the CSmsTraffic class. // ////////////////////////////////////////////////////////////////////// …

源码文件

/* bo3-4.c 顺序队列(非循环,存储结构由c3-3.h定义)的基本操作(9个) */ Status InitQueue(SqQueue *Q) { /* 构造一个空队列Q */ (*Q).base=(QElemType *)malloc…

源码文件

/* c3-3.h 队列的顺序存储结构(可用于循环队列和非循环队列) */ #define MAXQSIZE 5 /* 最大队列长度(对于循环队列,最大队列长度要减1) */ typedef struct { QElemType *base…

源码文件

#define MaxSize 100 #define ElemType char /*#define MaxNumber 100*/ typedef struct { ElemType data[MaxSize]; int front…

源码文件

#define ElemType char typedef struct queueNode { ElemType data; struct queueNode *next; }QueueNode; typedef struct { …

源码文件

#define MAXQSIZE 100 #define N 5 typedef struct{ int *base; int front; int rear; }Sqqueue; Sqqueue initqueue…

源码文件

/* “先进先出”(LIFO)的存储结构。数据元素只能从队尾进入,从队首取出。在队列中, 数据元素可以任意增减,但数据元素的次序不会改变。每当有数据元素从队列中被取出, 后面的数据元素依次向前移动一位。所以,任何时候从队列中读到的都是队首的数据。 …

源码文件

/* 模 块: 队列模块. 功 能: 用于以队列方式存储字符. 程序员: 雷中南. 版 本: v1.0 时 间: 1999-05-05 */ #ifndef _QUEUE #define _QUEUE #include "d…