資源簡介
本仿真電梯采用面向對象的設計思想,基于MFC,功能比較強大,算法邏輯比較清晰。仿真電梯可以完成各樓層的請求,界面美觀,實現(xiàn)電梯上下,電梯門的動態(tài)開關。

代碼片段和文件信息
//?Elevator.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Elevator.h“
#include?“ElevatorDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CElevatorApp
BEGIN_MESSAGE_MAP(CElevatorApp?CWinApp)
//{{AFX_MSG_MAP(CElevatorApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CElevatorApp?construction
CElevatorApp::CElevatorApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CElevatorApp?object
CElevatorApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CElevatorApp?initialization
BOOL?CElevatorApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CElevatorDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-03-21?14:44??計103葉先澤報告\
?????文件???????30720??2013-03-15?15:29??計103葉先澤報告\1?封面.doc
?????文件???????40448??2013-03-15?15:25??計103葉先澤報告\2?任務書.doc
?????文件??????413696??2013-03-21?14:18??計103葉先澤報告\3?報告正文.doc
?????文件???????40448??2013-03-15?15:26??計103葉先澤報告\4?教師評語及量化評分.doc
?????目錄???????????0??2013-03-21?14:45??計103葉先澤源程序\
?????目錄???????????0??2013-03-21?14:45??計103葉先澤源程序\Elevator\
?????目錄???????????0??2013-03-21?14:45??計103葉先澤源程序\Elevator\Debug\
?????文件?????3712000??2013-03-08?14:53??計103葉先澤源程序\Elevator\Debug\Elevator.bsc
?????文件?????1134674??2013-03-21?13:34??計103葉先澤源程序\Elevator\Debug\Elevator.exe
?????文件??????306672??2013-03-21?13:34??計103葉先澤源程序\Elevator\Debug\Elevator.ilk
?????文件???????12678??2013-03-21?12:47??計103葉先澤源程序\Elevator\Debug\Elevator.obj
?????文件?????7060624??2013-03-20?22:33??計103葉先澤源程序\Elevator\Debug\Elevator.pch
?????文件??????443392??2013-03-21?13:06??計103葉先澤源程序\Elevator\Debug\Elevator.pdb
?????文件??????833968??2013-03-20?22:33??計103葉先澤源程序\Elevator\Debug\Elevator.res
?????文件????????7211??2013-03-21?12:47??計103葉先澤源程序\Elevator\Debug\Elevator.sbr
?????文件???????76900??2013-03-21?13:50??計103葉先澤源程序\Elevator\Debug\ElevatorDlg.obj
?????文件???????20070??2013-03-21?13:50??計103葉先澤源程序\Elevator\Debug\ElevatorDlg.sbr
?????文件???????24612??2013-03-21?13:34??計103葉先澤源程序\Elevator\Debug\MyButton.obj
?????文件????????6115??2013-03-21?13:34??計103葉先澤源程序\Elevator\Debug\MyButton.sbr
?????文件????????9190??2013-03-21?12:47??計103葉先澤源程序\Elevator\Debug\MyElevator.obj
?????文件????????9015??2013-03-21?12:47??計103葉先澤源程序\Elevator\Debug\MyElevator.sbr
?????文件????????6728??2013-03-20?22:33??計103葉先澤源程序\Elevator\Debug\PlanQuene.obj
?????文件????????3149??2013-03-20?22:33??計103葉先澤源程序\Elevator\Debug\PlanQuene.sbr
?????文件??????106804??2013-03-20?22:33??計103葉先澤源程序\Elevator\Debug\StdAfx.obj
?????文件?????1383603??2013-03-20?22:33??計103葉先澤源程序\Elevator\Debug\StdAfx.sbr
?????文件??????205824??2013-03-21?13:50??計103葉先澤源程序\Elevator\Debug\vc60.idb
?????文件??????364544??2013-03-21?13:06??計103葉先澤源程序\Elevator\Debug\vc60.pdb
?????文件??????854504??2013-03-20?08:21??計103葉先澤源程序\Elevator\Elevator.aps
?????文件????????3593??2013-03-21?14:41??計103葉先澤源程序\Elevator\Elevator.clw
?????文件????????2091??2013-03-07?09:12??計103葉先澤源程序\Elevator\Elevator.cpp
............此處省略29個文件信息
評論
共有 條評論