資源簡介
實現ATM自動取款機的MFC可視界面的源代碼

代碼片段和文件信息
//?ATM.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ATM.h“
#include?“ATMDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CATMApp
BEGIN_MESSAGE_MAP(CATMApp?CWinApp)
//{{AFX_MSG_MAP(CATMApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CATMApp?construction
CATMApp::CATMApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CATMApp?object
CATMApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CATMApp?initialization
BOOL?CATMApp::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
CATMDlg?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??2014-11-04?10:41??ATM\
?????文件???????22296??2014-10-09?10:11??ATM\ATM.APS
?????文件????????2335??2014-11-04?10:41??ATM\ATM.clw
?????文件????????2021??2014-07-17?10:01??ATM\ATM.cpp
?????文件????????4490??2014-07-18?16:29??ATM\ATM.dsp
?????文件?????????512??2014-07-17?10:01??ATM\ATM.dsw
?????文件????????1291??2014-07-17?10:01??ATM\ATM.h
?????文件??????132096??2014-11-04?10:41??ATM\ATM.ncb
?????文件???????54784??2014-11-04?10:41??ATM\ATM.opt
?????文件?????????240??2014-11-04?10:41??ATM\ATM.plg
?????文件????????6832??2014-07-18?16:29??ATM\ATM.rc
?????文件????????4628??2014-07-17?10:25??ATM\ATMDlg.cpp
?????文件????????1395??2014-07-17?10:25??ATM\ATMDlg.h
?????目錄???????????0??2014-07-18?16:36??ATM\Debug\
?????文件??????114760??2014-07-18?16:36??ATM\Debug\ATM.exe
?????文件??????210056??2014-07-18?16:36??ATM\Debug\ATM.ilk
?????文件???????14297??2014-07-18?16:23??ATM\Debug\ATM.obj
?????文件?????5492816??2014-07-18?16:23??ATM\Debug\ATM.pch
?????文件??????377856??2014-07-18?16:36??ATM\Debug\ATM.pdb
?????文件????????3096??2014-07-18?16:36??ATM\Debug\ATM.res
?????文件???????29136??2014-07-18?16:23??ATM\Debug\ATMDlg.obj
?????文件???????15022??2014-07-18?16:23??ATM\Debug\DrawDlg.obj
?????文件???????17642??2014-07-18?16:23??ATM\Debug\MainMenuDlg.obj
?????文件???????14762??2014-07-18?16:36??ATM\Debug\ProofDlg.obj
?????文件??????105656??2014-07-18?16:23??ATM\Debug\StdAfx.obj
?????文件??????222208??2014-11-04?10:41??ATM\Debug\vc60.idb
?????文件??????364544??2014-07-18?16:36??ATM\Debug\vc60.pdb
?????文件????????1236??2014-07-18?16:21??ATM\DrawDlg.cpp
?????文件????????1212??2014-07-18?16:18??ATM\DrawDlg.h
?????文件????????1721??2014-07-18?16:21??ATM\MainMenuDlg.cpp
?????文件????????1347??2014-07-17?10:25??ATM\MainMenuDlg.h
............此處省略9個文件信息
- 上一篇:基于C++的微信打飛機小游戲
- 下一篇:道格拉斯普克算法的C++實現
評論
共有 條評論