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

📄 runway.h

📁 从课本上弄下来的例子
💻 H
字号:
#include"Plane.h"

enum Runway_activity{idle,lands,takeoffs};

class Runway{
public:
	Runway(int limit);
	bool can_land(const Plane &current);
	bool can_depart(const Plane &current);
	Runway_activity activity(int time,Plane &moving);
	void shut_down(int time)const;
private:
	queue<Plane> landing;
	queue<Plane> takeoff;
	int queue_limit;
	int num_land_requests;
	int num_takeoff_requests;
	int num_landings;
	int num_takeoffs;
	int num_land_accepted;
	int num_takeoff_accepted;
	int num_land_refused;
	int num_takeoff_refused;
	int land_wait;
	int takeoff_wait;
	int idle_time;
};

⌨️ 快捷键说明

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