-
大小: 54KB文件類型: .rar金幣: 2下載: 0 次發布日期: 2021-05-23
- 語言: 其他
- 標簽:
資源簡介
這是我寫的一個計算機程序,不管是界面還是功能,基本上和windows附件中的計算器一模一樣,可以參考參考

代碼片段和文件信息
//?calc_science.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“calc_science.h“
#include?“calc_scienceDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCalc_scienceApp
BEGIN_MESSAGE_MAP(CCalc_scienceApp?CWinApp)
//{{AFX_MSG_MAP(CCalc_scienceApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCalc_scienceApp?construction
CCalc_scienceApp::CCalc_scienceApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCalc_scienceApp?object
CCalc_scienceApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCalc_scienceApp?initialization
BOOL?CCalc_scienceApp::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
CCalc_scienceDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????46032??2006-08-04?19:33??calc_science\calc_science.aps
?????文件???????5277??2006-08-07?14:55??calc_science\calc_science.clw
?????文件???????2147??2006-07-29?14:52??calc_science\calc_science.cpp
?????文件???????4524??2006-08-03?21:59??calc_science\calc_science.dsp
?????文件????????549??2006-07-29?14:52??calc_science\calc_science.dsw
?????文件???????1390??2006-07-29?14:52??calc_science\calc_science.h
?????文件??????99328??2006-08-07?14:55??calc_science\calc_science.ncb
?????文件??????52736??2006-08-07?14:55??calc_science\calc_science.opt
?????文件???????1713??2006-08-07?13:42??calc_science\calc_science.plg
?????文件??????12610??2006-08-04?19:33??calc_science\calc_science.rc
?????文件??????54408??2006-08-07?13:42??calc_science\calc_scienceDlg.cpp
?????文件???????3908??2006-08-07?13:40??calc_science\calc_scienceDlg.h
?????文件???????1160??2006-08-03?13:25??calc_science\ChildBox.cpp
?????文件???????1206??2006-08-07?08:46??calc_science\ChildBox.h
?????目錄??????????0??2006-08-08?08:44??calc_science\Debug
?????文件???????3432??2006-08-07?08:47??calc_science\PopupBox.cpp
?????文件???????2086??2006-08-04?09:07??calc_science\PopupBox.h
?????文件???????3687??2006-07-29?14:52??calc_science\ReadMe.txt
?????文件???????1078??2006-07-29?14:52??calc_science\res\calc_science.ico
?????文件????????404??2006-07-29?14:52??calc_science\res\calc_science.rc2
?????目錄??????????0??2006-07-29?16:13??calc_science\res
?????文件???????7969??2006-08-04?19:33??calc_science\resource.h
?????文件????????214??2006-07-29?14:52??calc_science\StdAfx.cpp
?????文件???????1054??2006-07-29?14:52??calc_science\StdAfx.h
?????目錄??????????0??2006-08-07?14:55??calc_science
-----------?---------??----------?-----??----
???????????????306912????????????????????25
- 上一篇:電吉他效果器-失真效果器
- 下一篇:人工合成地震記錄的報告
評論
共有 條評論