📄 priority_queue.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 + -