lift.h
来自「非常完整的电梯模拟系统 欢迎大家提出宝贵建议」· C头文件 代码 · 共 31 行
H
31 行
#ifndef LIFT_CLASS
#define LIFT_CLASS
#include "Building.h"
#define UP 1
#define DOWN 2
#define LEISURE 0
#define MAXW 800
#define MAXN 10
class Lift
{
public:
Lift();
void Run();
void OutLift(int floor,int updown);
void EnterLift(int floor,int updown);
Building B;
int GetCount(){return count;}
int GetWeight(){return weight;}
private:
PQueue<Person> lift;
int state;
int count;
int weight;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?