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

📄 event.h

📁 简单的 Discrete Event Simulator M/M/K/K queue 含Readme。 可在此基础上开发复杂的仿真程序 请用 tar -xzvf sim.tar.gz 解压
💻 H
字号:
#ifndef EV_H#define EV_Hclass Event {public:  double time;            // Time at which Event takes place  int type;               // Type of Event  Event* next;            // Points to next event in list  Event(double t, int i) {    time = t;    type = i;    next = 0;  }	Event(){}	~Event(){}};class EventList {  Event* head;           // Points to first Event in EventList  int event_count;       // Total number of Events in EventListpublic:  ~EventList() { clear();}  EventList() { event_count = 0; head = 0;}  void insert(double time, int type);  // Insert new event into EventList  Event* get();                        // Returns first Event in EventList  void clear();                        // Removes all Events from EventList};#endif

⌨️ 快捷键说明

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