資源簡介
公交車上下車模擬 計算車上人數 mfc

代碼片段和文件信息
//?BUS.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“BUS.h“
#include?“BUSDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBUSApp
BEGIN_MESSAGE_MAP(CBUSApp?CWinApp)
//{{AFX_MSG_MAP(CBUSApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CBUSApp?construction
CBUSApp::CBUSApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBUSApp?object
CBUSApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBUSApp?initialization
BOOL?CBUSApp::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
CBUSDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????320988??2013-12-26?16:52??BUS\BUS.APS
?????文件???????2024??2013-12-26?17:25??BUS\BUS.clw
?????文件???????2021??2013-12-17?18:12??BUS\BUS.cpp
?????文件???????4780??2013-12-19?16:03??BUS\BUS.dsp
?????文件????????512??2013-12-17?18:50??BUS\BUS.dsw
?????文件???????1291??2013-12-17?18:12??BUS\BUS.h
?????文件??????74752??2013-12-26?17:25??BUS\BUS.ncb
?????文件??????48640??2013-12-26?17:25??BUS\BUS.opt
?????文件????????240??2013-12-26?17:24??BUS\BUS.plg
?????文件???????7433??2013-12-19?10:12??BUS\BUS.rc
?????文件???????7066??2013-12-20?10:55??BUS\BUSDlg.cpp
?????文件???????1589??2013-12-19?09:22??BUS\BUSDlg.h
?????文件????2482217??2013-12-26?16:58??BUS\Debug\BUS.exe
?????文件????2501720??2013-12-26?16:58??BUS\Debug\BUS.ilk
?????文件??????12730??2013-12-19?09:24??BUS\Debug\BUS.obj
?????文件????5527420??2013-12-17?18:29??BUS\Debug\BUS.pch
?????文件????4080640??2013-12-26?16:58??BUS\Debug\BUS.pdb
?????文件?????307308??2013-12-19?10:12??BUS\Debug\BUS.res
?????文件??????28768??2013-12-20?10:55??BUS\Debug\BUSDlg.obj
?????文件???????1758??2013-12-26?16:58??BUS\Debug\Passenger.obj
?????文件?????105242??2013-12-17?18:29??BUS\Debug\StdAfx.obj
?????文件?????222208??2013-12-26?17:24??BUS\Debug\vc60.idb
?????文件?????380928??2013-12-26?16:58??BUS\Debug\vc60.pdb
?????文件???????1862??2013-12-26?16:58??BUS\Passenger.cpp
?????文件??????????0??2013-12-26?16:52??BUS\Passenger.h
?????文件???????2758??2013-12-18?14:43??BUS\QQ截圖20131217131915.bmp
?????文件???????3525??2013-12-17?18:12??BUS\ReadMe.txt
?????文件??????23010??2013-12-18?19:38??BUS\res\bitmap4.bmp
?????文件???????1846??2013-12-18?19:20??BUS\res\bitmap5.bmp
?????文件???????1846??2013-12-18?19:20??BUS\res\bitmap6.bmp
............此處省略16個文件信息
評論
共有 條評論