里面包含了完整的程序包及程序步骤过程,欢迎交流。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3856 2011-01-02 16:42 2008115010116王定桥ATMATM.clw
文件 2697 2011-01-01 22:40 2008115010116王定桥ATMATM.cpp
文件 6966 2011-01-01 20:21 2008115010116王定桥ATMATM.dsp
文件 514 2011-01-01 20:21 2008115010116王定桥ATMATM.dsw
文件 7933997 2011-01-02 16:41 2008115010116王定桥ATMATM.exe
文件 1441 2011-01-01 16:57 2008115010116王定桥ATMATM.h
文件 13739 2011-01-01 17:04 2008115010116王定桥ATMATM.rc
文件 10326 2011-01-01 23:20 2008115010116王定桥ATMATMDlg.cpp
文件 2163 2011-01-01 16:57 2008115010116王定桥ATMATMDlg.h
文件 274432 2011-01-02 16:35 2008115010116王定桥ATMDataATM.mdb
文件 7933997 2011-01-02 16:33 2008115010116王定桥ATMDebugATM.exe
文件 7699796 2011-01-01 20:19 2008115010116王定桥ATMDebugATM.pch
文件 6461360 2011-01-01 20:19 2008115010116王定桥ATMDebugATM.res
文件 90661 2008-04-14 20:00 2008115010116王定桥ATMDebugmsado15.tlh
文件 76635 2008-04-14 20:00 2008115010116王定桥ATMDebugmsado15.tli
文件 7201 2011-01-02 16:31 2008115010116王定桥ATMGetmoney.cpp
文件 1746 2011-01-01 16:57 2008115010116王定桥ATMGetmoney.h
文件 3300 2011-01-01 17:08 2008115010116王定桥ATMMainmenu.cpp
文件 1525 2011-01-01 16:57 2008115010116王定桥ATMMainmenu.h
文件 5203 2011-01-01 22:51 2008115010116王定桥ATMModpwd.cpp
文件 1628 2011-01-01 16:57 2008115010116王定桥ATMModpwd.h
文件 90619 2008-04-14 20:00 2008115010116王定桥ATMmsado15.tlh
文件 76614 2008-04-14 20:00 2008115010116王定桥ATMmsado15.tli
文件 3509 2011-01-01 00:22 2008115010116王定桥ATMQuery.cpp
文件 1511 2011-01-01 16:57 2008115010116王定桥ATMQuery.h
文件 3525 2010-12-28 16:06 2008115010116王定桥ATMReadMe.txt
文件 401 2010-12-28 11:13 2008115010116王定桥ATM
esATM MFC版.rc2
文件 2750 2010-12-28 14:41 2008115010116王定桥ATM
esATM.ico
文件 395 2010-12-28 15:54 2008115010116王定桥ATM
esATM.rc2
文件 29456 2011-01-01 14:20 2008115010116王定桥ATM
esgetmoneypic1 (4).bmp
............此处省略57个文件信息
/****
* ATM.cpp
* 版权:湖北师范学院计算机学院 0801班 王定桥所有
* 程序用途:c++面向对象模拟ATM取款机
* 程序作者: 王定桥
* 时间:2010-12-31
****/
#include “stdafx.h“
#include “ATM.h“
#include “ATMDlg.h“
#include “Syssound.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
AfxOleInit();
m_pConnection.CreateInstance(__uuidof(Connection));
}
/////////////////////////////////////////////////////////////////////////////
// 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;
SetDialogBkColor(RGB(51102153)RGB(000));
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;
}
BOOL CATMApp::InitDatabase()
{
// 在ADO操作中用try...catch()来捕获错误信息
if(m_pConnection->IsolationLevel)
try
{
// 打开本地Access库
m_pConnection->Open(“Provider=Microsoft.Jet.OLEDB.4.0;Data Source=.\Data\ATM.mdb“““““adModeUnknown);
}
catch(_com_error e)
{
AfxMessageBox(“数据库连接失败,确认数据库是否在当前路径下!“MB_OK|MB_ICONHAND);
return FALSE;
}
return TRUE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3856 2011-01-02 16:42 2008115010116王定桥ATMATM.clw
文件 2697 2011-01-01 22:40 2008115010116王定桥ATMATM.cpp
文件 6966 2011-01-01 20:21 2008115010116王定桥ATMATM.dsp
文件 514 2011-01-01 20:21 2008115010116王定桥ATMATM.dsw
文件 7933997 2011-01-02 16:41 2008115010116王定桥ATMATM.exe
文件 1441 2011-01-01 16:57 2008115010116王定桥ATMATM.h
文件 13739 2011-01-01 17:04 2008115010116王定桥ATMATM.rc
文件 10326 2011-01-01 23:20 2008115010116王定桥ATMATMDlg.cpp
文件 2163 2011-01-01 16:57 2008115010116王定桥ATMATMDlg.h
文件 274432 2011-01-02 16:35 2008115010116王定桥ATMDataATM.mdb
文件 7933997 2011-01-02 16:33 2008115010116王定桥ATMDebugATM.exe
文件 7699796 2011-01-01 20:19 2008115010116王定桥ATMDebugATM.pch
文件 6461360 2011-01-01 20:19 2008115010116王定桥ATMDebugATM.res
文件 90661 2008-04-14 20:00 2008115010116王定桥ATMDebugmsado15.tlh
文件 76635 2008-04-14 20:00 2008115010116王定桥ATMDebugmsado15.tli
文件 7201 2011-01-02 16:31 2008115010116王定桥ATMGetmoney.cpp
文件 1746 2011-01-01 16:57 2008115010116王定桥ATMGetmoney.h
文件 3300 2011-01-01 17:08 2008115010116王定桥ATMMainmenu.cpp
文件 1525 2011-01-01 16:57 2008115010116王定桥ATMMainmenu.h
文件 5203 2011-01-01 22:51 2008115010116王定桥ATMModpwd.cpp
文件 1628 2011-01-01 16:57 2008115010116王定桥ATMModpwd.h
文件 90619 2008-04-14 20:00 2008115010116王定桥ATMmsado15.tlh
文件 76614 2008-04-14 20:00 2008115010116王定桥ATMmsado15.tli
文件 3509 2011-01-01 00:22 2008115010116王定桥ATMQuery.cpp
文件 1511 2011-01-01 16:57 2008115010116王定桥ATMQuery.h
文件 3525 2010-12-28 16:06 2008115010116王定桥ATMReadMe.txt
文件 401 2010-12-28 11:13 2008115010116王定桥ATM
esATM MFC版.rc2
文件 2750 2010-12-28 14:41 2008115010116王定桥ATM
esATM.ico
文件 395 2010-12-28 15:54 2008115010116王定桥ATM
esATM.rc2
文件 29456 2011-01-01 14:20 2008115010116王定桥ATM
esgetmoneypic1 (4).bmp
............此处省略57个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)