資源簡介
VC++課程設計 源代碼 計算器 可以實現簡單的加減乘除四則運算,三角函數運算等

代碼片段和文件信息
//?button.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“StdAfx.h“
#include?“button.h“
#include?“buttonDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CButtonApp
BEGIN_MESSAGE_MAP(CButtonApp?CWinApp)
//{{AFX_MSG_MAP(CButtonApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CButtonApp?construction
CButtonApp::CButtonApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CButtonApp?object
CButtonApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CButtonApp?initialization
BOOL?CButtonApp::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
CButtonDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????22788??2010-02-05?17:28??VC++簡單計算器\button.aps
?????文件???????2269??2010-02-11?17:11??VC++簡單計算器\button.clw
?????文件???????2063??2010-02-07?14:12??VC++簡單計算器\button.cpp
?????文件???????4159??2009-11-10?00:00??VC++簡單計算器\button.dsp
?????文件????????520??2009-11-10?00:36??VC++簡單計算器\button.dsw
?????文件???????1324??2009-11-10?00:00??VC++簡單計算器\button.h
?????文件?????132096??2010-02-11?17:12??VC++簡單計算器\button.ncb
?????文件??????49664??2010-02-11?17:12??VC++簡單計算器\button.opt
?????文件????????698??2010-02-07?14:16??VC++簡單計算器\button.plg
?????文件???????6684??2009-12-17?14:59??VC++簡單計算器\button.rc
?????文件??????11911??2009-12-17?15:21??VC++簡單計算器\buttonDlg.cpp
?????文件???????2244??2009-12-17?14:38??VC++簡單計算器\buttonDlg.h
?????文件?????114739??2009-12-20?23:39??VC++簡單計算器\Debug\button.exe
?????文件?????274740??2009-12-20?23:39??VC++簡單計算器\Debug\button.ilk
?????文件??????12810??2009-12-17?14:59??VC++簡單計算器\Debug\button.obj
?????文件????5492200??2009-11-10?00:07??VC++簡單計算器\Debug\button.pch
?????文件?????386048??2009-12-17?18:37??VC++簡單計算器\Debug\button.pdb
?????文件???????3520??2009-12-17?14:59??VC++簡單計算器\Debug\button.res
?????文件??????46915??2010-02-07?14:16??VC++簡單計算器\Debug\buttonDlg.obj
?????文件?????106051??2009-11-10?00:07??VC++簡單計算器\Debug\StdAfx.obj
?????文件?????214016??2010-02-07?14:16??VC++簡單計算器\Debug\vc60.idb
?????文件?????380928??2010-02-07?14:16??VC++簡單計算器\Debug\vc60.pdb
?????文件???????3579??2009-11-10?00:00??VC++簡單計算器\ReadMe.txt
?????文件???????1078??2009-11-10?00:00??VC++簡單計算器\res\button.ico
?????文件????????398??2009-11-10?00:00??VC++簡單計算器\res\button.rc2
?????文件???????2064??2009-12-17?14:40??VC++簡單計算器\resource.h
?????文件????????208??2009-11-10?00:00??VC++簡單計算器\StdAfx.cpp
?????文件???????1054??2009-11-10?00:00??VC++簡單計算器\StdAfx.h
?????目錄??????????0??2010-02-07?14:16??VC++簡單計算器\Debug
?????目錄??????????0??2009-12-17?04:33??VC++簡單計算器\res
............此處省略4個文件信息
評論
共有 條評論