91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

1能夠?qū)崿F(xiàn)基本的加減乘除運算,區(qū)分乘除、加減的優(yōu)先級別,并實現(xiàn)括號的優(yōu)先級別,運算符的混合運算都能基本實現(xiàn); 2.界面上設(shè)置了多個函數(shù),當(dāng)界面上有數(shù)字時,按下鍵位就能夠得到這個數(shù)的對應(yīng)值; 3.添加了一個error報錯函數(shù),當(dāng)算式不合乎正常數(shù)學(xué)表達(dá)式時就能彈出提示“表達(dá)式錯誤”消息框; 4.添加了二進(jìn)制、八進(jìn)制、十六進(jìn)制等進(jìn)制,可以相互之間切換,并每個進(jìn)制都能進(jìn)行該進(jìn)制的計算。

資源截圖

代碼片段和文件信息

//?calculator.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“calculator.h“
#include?“calculatorDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CCalculatorApp

BEGIN_MESSAGE_MAP(CCalculatorApp?CWinApp)
//{{AFX_MSG_MAP(CCalculatorApp)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CCalculatorApp?construction

CCalculatorApp::CCalculatorApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCalculatorApp?object

CCalculatorApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CCalculatorApp?initialization

BOOL?CCalculatorApp::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

CCalculatorDlg?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;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????23880??2012-10-12?20:45??Calculator\calculator.aps

?????文件???????2968??2012-10-12?20:54??Calculator\calculator.clw

?????文件???????2119??2012-07-09?11:36??Calculator\calculator.cpp

?????文件???????4257??2012-07-09?12:26??Calculator\calculator.dsp

?????文件????????526??2012-07-09?11:36??Calculator\calculator.dsw

?????文件???????1368??2012-07-09?11:36??Calculator\calculator.h

?????文件?????164864??2012-10-12?20:54??Calculator\calculator.ncb

?????文件??????55808??2012-10-12?20:54??Calculator\calculator.opt

?????文件???????1120??2012-10-12?20:48??Calculator\calculator.plg

?????文件???????7900??2012-07-10?10:47??Calculator\calculator.rc

?????文件??????20946??2012-08-26?11:47??Calculator\calculatorDlg.cpp

?????文件???????2732??2012-07-10?10:49??Calculator\calculatorDlg.h

?????文件??????30898??2010-03-08?20:46??Calculator\Debug\Cal.obj

?????文件????2183231??2012-10-12?20:48??Calculator\Debug\calculator.exe

?????文件????2551920??2012-10-12?20:48??Calculator\Debug\calculator.ilk

?????文件??????13425??2012-08-20?20:00??Calculator\Debug\calculator.obj

?????文件????5458236??2012-08-20?20:00??Calculator\Debug\calculator.pch

?????文件????4178944??2012-10-12?20:48??Calculator\Debug\calculator.pdb

?????文件??????10256??2012-08-20?19:59??Calculator\Debug\calculator.res

?????文件?????127344??2012-08-26?11:47??Calculator\Debug\calculatorDlg.obj

?????文件?????105630??2012-08-20?20:00??Calculator\Debug\StdAfx.obj

?????文件??????24002??2012-10-12?20:48??Calculator\Debug\Transform.obj

?????文件?????287744??2012-10-12?20:48??Calculator\Debug\vc60.idb

?????文件?????413696??2012-10-12?20:48??Calculator\Debug\vc60.pdb

?????文件???????3651??2012-07-09?11:36??Calculator\ReadMe.txt

?????文件???????1078??2012-07-09?12:26??Calculator\res\calculator.ico

?????文件????????402??2012-07-09?11:36??Calculator\res\calculator.rc2

?????文件???????2574??2012-07-10?10:47??Calculator\resource.h

?????文件????????212??2012-07-09?11:36??Calculator\StdAfx.cpp

?????文件???????1054??2012-07-09?11:36??Calculator\StdAfx.h

............此處省略8個文件信息

評論

共有 條評論