資源簡介
一元二次方程 MFC實現 考慮了三種情況;

代碼片段和文件信息
//?Equation.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Equation.h“
#include?“EquationDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CEquationApp
BEGIN_MESSAGE_MAP(CEquationApp?CWinApp)
//{{AFX_MSG_MAP(CEquationApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CEquationApp?construction
CEquationApp::CEquationApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CEquationApp?object
CEquationApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CEquationApp?initialization
BOOL?CEquationApp::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
CEquationDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????110713??2012-01-10?15:20??一元二次方程求解MFC實現\Debug\Equation.exe
?????文件?????197368??2012-01-10?15:20??一元二次方程求解MFC實現\Debug\Equation.ilk
?????文件??????14814??2011-12-26?10:52??一元二次方程求解MFC實現\Debug\Equation.obj
?????文件????5503328??2011-12-26?10:52??一元二次方程求解MFC實現\Debug\Equation.pch
?????文件?????361472??2012-01-10?15:20??一元二次方程求解MFC實現\Debug\Equation.pdb
?????文件???????4268??2012-01-10?15:20??一元二次方程求解MFC實現\Debug\Equation.res
?????文件??????32598??2012-01-10?15:20??一元二次方程求解MFC實現\Debug\EquationDlg.obj
?????文件?????106067??2011-12-26?10:52??一元二次方程求解MFC實現\Debug\StdAfx.obj
?????文件?????214016??2012-01-10?15:20??一元二次方程求解MFC實現\Debug\vc60.idb
?????文件?????364544??2012-01-10?15:20??一元二次方程求解MFC實現\Debug\vc60.pdb
?????文件??????38692??2012-01-10?15:20??一元二次方程求解MFC實現\Equation.aps
?????文件???????2616??2012-01-10?15:20??一元二次方程求解MFC實現\Equation.clw
?????文件???????2091??2011-11-27?16:10??一元二次方程求解MFC實現\Equation.cpp
?????文件???????4195??2011-11-27?16:10??一元二次方程求解MFC實現\Equation.dsp
?????文件????????541??2011-11-27?16:10??一元二次方程求解MFC實現\Equation.dsw
?????文件???????1346??2011-11-27?16:10??一元二次方程求解MFC實現\Equation.h
?????文件??????74752??2012-01-10?15:20??一元二次方程求解MFC實現\Equation.ncb
?????文件??????48640??2012-01-10?15:20??一元二次方程求解MFC實現\Equation.opt
?????文件????????749??2012-01-10?15:20??一元二次方程求解MFC實現\Equation.plg
?????文件???????7901??2012-01-10?15:20??一元二次方程求解MFC實現\Equation.rc
?????文件???????6513??2011-11-30?14:36??一元二次方程求解MFC實現\EquationDlg.cpp
?????文件???????1547??2011-11-28?08:49??一元二次方程求解MFC實現\EquationDlg.h
?????文件???????3615??2011-11-27?16:10??一元二次方程求解MFC實現\ReadMe.txt
?????文件???????1078??2011-11-27?16:10??一元二次方程求解MFC實現\res\Equation.ico
?????文件????????400??2011-11-27?16:10??一元二次方程求解MFC實現\res\Equation.rc2
?????文件???????1376??2011-11-27?21:48??一元二次方程求解MFC實現\resource.h
?????文件????????210??2011-11-27?16:10??一元二次方程求解MFC實現\StdAfx.cpp
?????文件???????1054??2011-11-27?16:10??一元二次方程求解MFC實現\StdAfx.h
?????目錄??????????0??2012-01-10?15:20??一元二次方程求解MFC實現\Debug
?????目錄??????????0??2012-01-10?15:16??一元二次方程求解MFC實現\res
............此處省略4個文件信息
評論
共有 條評論