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

📄 floor.h

📁 这个程序是对电梯的模拟
💻 H
字号:
// Floor.h: interface for the Floor class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FLOOR_H__BF810FD9_DFD1_4937_BD4A_1DFB72DB3215__INCLUDED_)
#define AFX_FLOOR_H__BF810FD9_DFD1_4937_BD4A_1DFB72DB3215__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Elevator.h"
#include "DataInfo.h"
#include "People.h"
#include "Button.h"	// Added by ClassView
#include "Time.h"	// Added by ClassView

class Floor  
{
public:
	Time GetFistTime();
	bool IsPeopleWaitDown();
	bool IsPeopleWaitUp();
	void DeletePeople(People *people);
	int CreatePeople(Elevator* & leu);//return the number of people
	void  SetFloorNumber(int num);
	Floor(int floors,int num=0);
	virtual ~Floor();


    list<People *> pList[2];//plist[0]——down;plist[1]——up
	Button upButton;//上按钮
    Button downButton;//上按钮
	
	int bfloors;
	int number;     //该楼层的编号

};

#endif // !defined(AFX_FLOOR_H__BF810FD9_DFD1_4937_BD4A_1DFB72DB3215__INCLUDED_)

⌨️ 快捷键说明

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