資源簡介
c++課程設計 有MFC實現 附帶課程設計報告

代碼片段和文件信息
//?Calculator2.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Calculator2.h“
#include?“Calculator2Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCalculator2App
BEGIN_MESSAGE_MAP(CCalculator2App?CWinApp)
//{{AFX_MSG_MAP(CCalculator2App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCalculator2App?construction
CCalculator2App::CCalculator2App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCalculator2App?object
CCalculator2App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCalculator2App?initialization
BOOL?CCalculator2App::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
CCalculator2Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????11338??2002-01-14?01:01??計算器4\CALCDLG.CPP
?????文件???????2979??2002-01-14?01:01??計算器4\CALCDLG.H
?????文件??????24076??2009-01-02?20:05??計算器4\Calculator.aps
?????文件???????3394??2009-01-02?20:06??計算器4\Calculator.clw
?????文件???????2119??2002-01-14?01:01??計算器4\Calculator.cpp
?????文件???????4652??2002-01-14?01:01??計算器4\Calculator.dsp
?????文件????????543??2002-01-14?01:01??計算器4\Calculator.dsw
?????文件???????1368??2002-01-14?01:01??計算器4\Calculator.h
?????文件?????189440??2009-01-02?20:06??計算器4\Calculator.ncb
?????文件???????1304??2009-01-02?20:06??計算器4\Calculator.plg
?????文件???????9105??2008-12-28?21:35??計算器4\Calculator.rc
?????文件???????3366??2008-12-28?20:26??計算器4\CalculatorDlg.h
?????文件???????3651??2002-01-14?01:01??計算器4\ReadMe.txt
?????文件???????2758??2008-12-28?18:29??計算器4\resource.h
?????文件????????212??2002-01-14?01:01??計算器4\StdAfx.cpp
?????文件???????1054??2002-01-14?01:01??計算器4\StdAfx.h
?????文件????2150448??2009-01-02?20:06??計算器4\Debug\Calculator.exe
?????文件????2509156??2009-01-02?20:06??計算器4\Debug\Calculator.ilk
?????文件??????13233??2008-12-28?21:42??計算器4\Debug\Calculator.obj
?????文件????5661516??2008-12-28?21:42??計算器4\Debug\Calculator.pch
?????文件????4129792??2009-01-02?20:06??計算器4\Debug\Calculator.pdb
?????文件??????10372??2008-12-28?21:42??計算器4\Debug\Calculator.res
?????文件?????105493??2008-12-28?21:42??計算器4\Debug\StdAfx.obj
?????文件?????214016??2009-01-02?20:06??計算器4\Debug\vc60.idb
?????文件?????364544??2009-01-02?20:05??計算器4\Debug\vc60.pdb
?????文件??????58892??2009-01-02?20:05??計算器4\Debug\CalculatorDlg.obj
?????文件???????1078??2002-01-14?01:02??計算器4\RES\Calculator.ico
?????文件????????402??2002-01-14?01:02??計算器4\RES\Calculator.rc2
????..A.SH.??????3072??2008-12-27?12:44??計算器4\RES\Thumbs.db
?????文件??????16408??2009-01-02?20:05??計算器4\CalculatorDlg.cpp
............此處省略82個文件信息
- 上一篇:C、C++中國象棋程序入門與提高
- 下一篇:迷宮益智游戲,c++mfc編寫,親測有效
評論
共有 條評論