📄 estimview.h
字号:
// EstimView.h : interface of the CEstimView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ESTIMVIEW_H__B04F076D_BB86_11D7_A365_00E04C616770__INCLUDED_)
#define AFX_ESTIMVIEW_H__B04F076D_BB86_11D7_A365_00E04C616770__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CEstimView : public CView
{
protected: // create from serialization only
CEstimView();
DECLARE_DYNCREATE(CEstimView)
// Attributes
public:
CEstimDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEstimView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
long double XResult[2],RResult,FxMin;
int iCycleNum;
long double RandomNumber(long double *r);
bool FireFallCalc();
bool SimpCalc(long double x[2],int l);
long double R(long double x[2]);
bool SimpEndOrNot(long double r[3],int imin);
long double Square(long double x);
//遗传算法的变量和函数
virtual ~CEstimView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEstimView)
afx_msg void OnSimp();
afx_msg void OnSimpFireFall();
afx_msg void OnSimpHeredity();
afx_msg void OnSimpCalc();
afx_msg void OnSimulateFire();
afx_msg void OnInherit();
afx_msg void OnVariSimp();
afx_msg void OnChangeLVari();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in EstimView.cpp
inline CEstimDoc* CEstimView::GetDocument()
{ return (CEstimDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ESTIMVIEW_H__B04F076D_BB86_11D7_A365_00E04C616770__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -