⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 priority_queue.h

📁 This is a binary search tree with void* pointer in data segment in order you to search store and del
💻 H
字号:
#ifndef PRIORITY_QUEUE#define PRIORITY_QUEUEtypedef struct  {	int actionType;	int timeStamp;	int id;	int type;}heapInfo;typedef struct  {	heapInfo *heap;	unsigned int maxSize;	unsigned int size;}priorQueue;/*makes a new priority queue with fixed size(?)*/priorQueue* newHeap(unsigned int qsize);/*inserts a new sceduled action in the priority  queue pointed by heapInfo* */int Insert(heapInfo *newAction,priorQueue *p);/*Gets the action with the highest priority*/heapInfo* getMin(priorQueue *p);/*Deletes and gets the action with the highest priority*/heapInfo* DeleteMin(priorQueue *p);void printall(priorQueue *p);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -