• 大小: 1.79MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-05
  • 语言: C/C++
  • 标签: MFC  

资源简介

一元二次方程 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个文件信息

评论

共有 条评论