資源簡介
短學期做的MFC一個項目,本程序采用多線程的方式,有效地解決了3部電梯在12層樓內的調度運行問題,具有運行穩定、拓展功能豐富、電梯調度靈活、資源配置合理的優點。
代碼片段和文件信息
//?elevator.cpp:?implementation?of?the?elevator?class.
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“ElevatorSysterm.h“
#include?“Elevator.h“
#include?“Passenger.h“
#include?“timer.h“
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
elevator::elevator()
{
endfloor=0;
ifon=1;
line=new?passenger;
maxweight=1300;
weight=0;
sum=0;
state=0;
ifstop=1;
nowfloor=0;
for(int?i=0;i<12;i++)?light[i]=0;
}
elevator::~elevator()
{
passenger?*p=line->next;
while(line&&p)
{
line->ne
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????11747??2018-09-08?13:59??ElevatorSysterm7.2\Debug\elevator.obj
?????文件?????221291??2018-09-09?18:49??ElevatorSysterm7.2\Debug\ElevatorSysterm.exe
?????文件?????488256??2018-09-09?18:49??ElevatorSysterm7.2\Debug\ElevatorSysterm.ilk
?????文件??????13212??2018-09-08?14:21??ElevatorSysterm7.2\Debug\ElevatorSysterm.obj
?????文件????6093388??2018-09-08?13:59??ElevatorSysterm7.2\Debug\ElevatorSysterm.pch
?????文件?????607232??2018-09-09?18:49??ElevatorSysterm7.2\Debug\ElevatorSysterm.pdb
?????文件??????20504??2018-09-09?18:43??ElevatorSysterm7.2\Debug\ElevatorSysterm.res
?????文件?????138738??2018-09-09?18:49??ElevatorSysterm7.2\Debug\ElevatorSystermDlg.obj
?????文件???????9226??2018-09-08?13:59??ElevatorSysterm7.2\Debug\floor.obj
?????文件?????107770??2018-09-08?14:21??ElevatorSysterm7.2\Debug\InsideleDlg.obj
?????文件???????4356??2018-09-08?13:59??ElevatorSysterm7.2\Debug\passenger.obj
?????文件??????23750??2018-09-09?18:33??ElevatorSysterm7.2\Debug\public.obj
?????文件??????15618??2018-09-08?13:59??ElevatorSysterm7.2\Debug\RoundButton.obj
?????文件??????15657??2018-09-08?13:59??ElevatorSysterm7.2\Debug\RoundButton2.obj
?????文件?????108454??2018-09-08?13:59??ElevatorSysterm7.2\Debug\StdAfx.obj
?????文件???????6951??2018-09-08?13:59??ElevatorSysterm7.2\Debug\timer.obj
?????文件??????13692??2018-09-08?14:26??ElevatorSysterm7.2\Debug\TipDlg.obj
?????文件?????517120??2018-09-09?22:53??ElevatorSysterm7.2\Debug\vc60.idb
?????文件?????487424??2018-09-09?18:49??ElevatorSysterm7.2\Debug\vc60.pdb
?????文件????????466??2018-09-09?23:03??ElevatorSysterm7.2\elesysterm.dat
?????文件???????3673??2018-09-08?13:59??ElevatorSysterm7.2\elevator.cpp
?????文件????????832??2018-09-07?20:38??ElevatorSysterm7.2\elevator.h
?????文件??????74196??2018-09-09?18:43??ElevatorSysterm7.2\ElevatorSysterm.aps
?????文件??????15980??2018-09-11?20:48??ElevatorSysterm7.2\ElevatorSysterm.clw
?????文件???????2187??2018-09-08?13:59??ElevatorSysterm7.2\ElevatorSysterm.cpp
?????文件???????7303??2018-09-08?13:28??ElevatorSysterm7.2\ElevatorSysterm.dsp
?????文件????????555??2018-08-26?16:03??ElevatorSysterm7.2\ElevatorSysterm.dsw
?????文件???????1423??2018-08-28?15:15??ElevatorSysterm7.2\ElevatorSysterm.h
?????文件?????525312??2018-09-11?20:48??ElevatorSysterm7.2\ElevatorSysterm.ncb
?????文件??????57856??2018-09-11?20:48??ElevatorSysterm7.2\ElevatorSysterm.opt
............此處省略52個文件信息
- 上一篇:寫了一個動物園的管理系統,請大家多多指教
- 下一篇:監控IP數據包流量
評論
共有 條評論