📄 遗传算法view.h
字号:
// 遗传算法View.h : interface of the CMyView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_VIEW_H__20AD3768_B583_4EF5_B9AF_877414B86450__INCLUDED_)
#define AFX_VIEW_H__20AD3768_B583_4EF5_B9AF_877414B86450__INCLUDED_
/***********************/
#include "Individual.h"
/***********************/
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMySet;
class CMyView : public CRecordView
{
protected: // create from serialization only
CMyView();
DECLARE_DYNCREATE(CMyView)
public:
//{{AFX_DATA(CMyView)
enum { IDD = IDD_MY_FORM };
CMySet* m_pSet;
float m_fit1;
float m_fit2;
float m_fit3;
float m_fit4;
int m_Fmin;
int m_Smin;
CString m_11;
CString m_12;
CString m_13;
CString m_14;
CString m_15;
CString m_21;
CString m_22;
CString m_23;
CString m_24;
CString m_25;
CString m_31;
CString m_32;
CString m_33;
CString m_34;
CString m_35;
CString m_41;
CString m_42;
CString m_43;
CString m_44;
CString m_45;
int m_mute;
int m_crossport;
int m_muteport;
//}}AFX_DATA
// Attributes
public:
CMyDoc* GetDocument();
// Operations
public:
//CIndividual Oldpop[10];
//CIndividual Newpop[10];
//CIndividual Cankao[10];
int m_Shi,m_Can;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyView)
public:
virtual CRecordset* OnGetRecordset();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
int m_distance[5];
int power(int i,int j);
void DeCode();
// void Swap(int &p1[ ],int &p2[ ],int n);
virtual ~CMyView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMyView)
afx_msg void OnCode();
afx_msg void OnCodee();
afx_msg void OnFitcompute();
afx_msg void OnSelect();
afx_msg void OnMutation();
afx_msg void OnXunhuan();
afx_msg void OnNew();
afx_msg void OnXunhuan2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in 遗传算法View.cpp
inline CMyDoc* CMyView::GetDocument()
{ return (CMyDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VIEW_H__20AD3768_B583_4EF5_B9AF_877414B86450__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -