fifo.h
来自「本程序给出了SSD5实验课中Optional Exercise2的参考程序 内附」· C头文件 代码 · 共 21 行
H
21 行
#ifndef FIFO_ZHUBICEN
#define FIFO_ZHUBICEN
#include "simulator.h"
class fifo:public simulator
{
protected:
queue<event> waiting;
priority_queue<event> priority_waiting;
void simulate_arbitrary(string file);
void simulate_bigfirst(string file);
//virtual void load
public:
fifo(int seconds_per_page);
virtual void simulate(string file);
};
//overload operator < to use the priority_queue
bool operator < (event evtleft,event evtright);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?