?? 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 + -