资源简介

最小二乘法的曲线拟合(最高到6次)MFC实时选点和绘制曲线

资源截图

代码片段和文件信息

// LeastSquare.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “LeastSquare.h“

#include “MainFrm.h“
#include “LeastSquareDoc.h“
#include “LeastSquareView.h“

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

/////////////////////////////////////////////////////////////////////////////
// CLeastSquareApp

BEGIN_MESSAGE_MAP(CLeastSquareApp CWinApp)
//{{AFX_MSG_MAP(CLeastSquareApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLeastSquareApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CLeastSquareApp object

CLeastSquareApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CLeastSquareApp initialization

BOOL CLeastSquareApp::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

// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

LoadStdProfileSettings();  // Load standard INI file options (including MRU)

// Register the application‘s document templates.  Document templates
//  serve as the connection between documents frame windows and views.

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CLeastSquareDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CLeastSquareView));
AddDocTemplate(pDocTemplate);

// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;

// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();

return TRUE;
}


////////

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        843  2009-02-19 22:13  LeastSquare\LS.h

     文件       1957  2009-02-19 22:13  LeastSquare\LS.cpp

     文件       2008  2009-02-19 22:52  LeastSquare\LeastSquare.clw

     文件       4431  2009-02-19 19:50  LeastSquare\ReadMe.txt

     文件       1411  2009-02-19 19:50  LeastSquare\LeastSquare.h

     文件       4204  2009-02-19 19:50  LeastSquare\LeastSquare.cpp

     文件       1054  2009-02-19 19:50  LeastSquare\StdAfx.h

     文件        213  2009-02-19 19:50  LeastSquare\StdAfx.cpp

     文件       1581  2009-02-19 19:50  LeastSquare\MainFrm.h

     文件      36864  2009-02-19 22:52  LeastSquare\Release\LeastSquare.exe

     文件       1530  2009-02-19 19:50  LeastSquare\LeastSquareDoc.h

     文件       1842  2009-02-19 19:50  LeastSquare\LeastSquareDoc.cpp

     文件      10474  2009-02-19 22:49  LeastSquare\LeastSquare.rc

     文件       2542  2009-02-19 22:52  LeastSquare\MainFrm.cpp

     文件        403  2009-02-19 19:50  LeastSquare\res\LeastSquare.rc2

     文件       1078  2009-02-19 19:50  LeastSquare\res\LeastSquareDoc.ico

     文件       1078  2009-02-19 19:50  LeastSquare\res\LeastSquare.ico

     文件        718  2009-02-19 21:57  LeastSquare\res\Toolbar.bmp

     文件        786  2009-02-19 21:57  LeastSquare\Resource.h

     文件       2143  2009-02-19 22:25  LeastSquare\LeastSquareView.h

     文件       4959  2009-02-19 22:42  LeastSquare\LeastSquareView.cpp

     文件       5021  2009-02-19 22:38  LeastSquare\LeastSquare.dsp

     文件       2627  2009-02-19 22:52  LeastSquare\LeastSquare.plg

     文件      43232  2009-02-19 22:49  LeastSquare\LeastSquare.aps

     文件       2079  2009-02-19 21:18  LeastSquare\Matrix.cpp

     文件        821  2009-02-19 21:16  LeastSquare\Matrix.h

     文件      53760  2009-02-19 22:53  LeastSquare\LeastSquare.opt

     文件        547  2009-02-19 22:52  LeastSquare\LeastSquare.dsw

     文件      74752  2009-02-19 22:53  LeastSquare\LeastSquare.ncb

     文件        948  2009-02-19 20:27  LeastSquare\Linequ.h

............此处省略8个文件信息

评论

共有 条评论