⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 preinit.cpp

📁 用遗传算法实现巡回旅行商(邮差问题)的程序。可自由设置城市位置及数目
💻 CPP
字号:
// preinit.cpp : implementation file
//

#include "stdafx.h"
#include "travelSP.h"
#include "preinit.h"

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

/////////////////////////////////////////////////////////////////////////////
// preinit dialog


preinit::preinit(CWnd* pParent /*=NULL*/)
	: CDialog(preinit::IDD, pParent)
{
	//{{AFX_DATA_INIT(preinit)
	m_maxindiv =80;
	m_maxgen =100;
	m_crossrate = 0.46;
	//}}AFX_DATA_INIT
}


void preinit::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(preinit)
	DDX_Text(pDX, IDC_EDIT1, m_maxindiv);
	DDV_MinMaxInt(pDX, m_maxindiv, 2, 1000);
	DDX_Text(pDX, IDC_EDIT2, m_maxgen);
	DDX_Text(pDX, IDC_EDIT3, m_crossrate);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(preinit, CDialog)
	//{{AFX_MSG_MAP(preinit)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// preinit message handlers

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -