资源简介
实现了加减乘除、开方、取余、连算等功能,含有详细实现文档,修复了所有的bug。
代码片段和文件信息
// Caculator.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Caculator.h“
#include “CaculatorDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCaculatorApp
BEGIN_MESSAGE_MAP(CCaculatorApp CWinApp)
//{{AFX_MSG_MAP(CCaculatorApp)
ON_COMMAND(ID_EXIT OnExit)
//}}AFX_MSG_MAP
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCaculatorApp construction
CCaculatorApp::CCaculatorApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCaculatorApp object
CCaculatorApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCaculatorApp initialization
BOOL CCaculatorApp::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
CCaculatorDlg 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;
}
void CCaculatorApp::OnExit()
{
AfxGetMainWnd()->SendMessage(WM_CLOSE);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2151054 2017-11-26 15:43 Caculator.rar
文件 22912 2014-03-02 22:05 Caculator\Caculator\Caculator.aps
文件 2070 2014-03-04 15:15 Caculator\Caculator\Caculator.clw
文件 2085 2014-03-02 12:50 Caculator\Caculator\Caculator.cpp
文件 4210 2014-03-02 13:01 Caculator\Caculator\Caculator.dsp
文件 541 2014-02-28 03:41 Caculator\Caculator\Caculator.dsw
文件 1240 2014-02-28 05:39 Caculator\Caculator\Caculator.h
文件 91136 2014-03-04 15:45 Caculator\Caculator\Caculator.ncb
文件 55808 2014-03-04 15:45 Caculator\Caculator\Caculator.opt
文件 1044 2014-03-02 22:56 Caculator\Caculator\Caculator.plg
文件 6598 2014-03-02 16:33 Caculator\Caculator\Caculator.rc
文件 12451 2014-03-02 22:56 Caculator\Caculator\CaculatorDlg.cpp
文件 2293 2014-03-04 15:15 Caculator\Caculator\CaculatorDlg.h
文件 118918 2014-03-02 22:56 Caculator\Caculator\Debug\Caculator.exe
文件 231408 2014-03-02 22:56 Caculator\Caculator\Debug\Caculator.ilk
文件 17396 2014-03-02 22:06 Caculator\Caculator\Debug\Caculator.obj
文件 5966736 2014-03-02 22:06 Caculator\Caculator\Debug\Caculator.pch
文件 394240 2014-03-02 22:56 Caculator\Caculator\Debug\Caculator.pdb
文件 3392 2014-03-02 16:33 Caculator\Caculator\Debug\Caculator.res
文件 57110 2014-03-02 22:56 Caculator\Caculator\Debug\CaculatorDlg.obj
文件 106555 2014-03-02 22:06 Caculator\Caculator\Debug\StdAfx.obj
文件 369664 2014-03-02 23:02 Caculator\Caculator\Debug\vc60.idb
文件 471040 2014-03-02 22:56 Caculator\Caculator\Debug\vc60.pdb
文件 10986 2014-03-02 13:00 Caculator\Caculator\ff.asp
文件 3633 2014-02-28 03:41 Caculator\Caculator\ReadMe.txt
文件 1078 2014-03-02 12:54 Caculator\Caculator\res\Caculator.ico
文件 401 2014-02-28 03:41 Caculator\Caculator\res\Caculator.rc2
文件 1791 2014-03-01 14:32 Caculator\Caculator\resource.h
文件 211 2014-02-28 03:41 Caculator\Caculator\StdAfx.cpp
文件 1056 2014-03-01 21:17 Caculator\Caculator\StdAfx.h
............此处省略8个文件信息
评论
共有 条评论