runway.h

来自「从课本上弄下来的例子」· C头文件 代码 · 共 27 行

H
27
字号
#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 + =
减小字号Ctrl + -
显示快捷键?