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