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

📄 inputcu.cpp

📁 一个关于蚁群聚类的程序希望对大家有用
💻 CPP
字号:
// InputCu.cpp : implementation file
//

#include "stdafx.h"
#include "antclusting.h"
#include "InputCu.h"

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

/////////////////////////////////////////////////////////////////////////////
// CInputCu dialog


CInputCu::CInputCu(CWnd* pParent /*=NULL*/)
	: CDialog(CInputCu::IDD, pParent)
{
	//{{AFX_DATA_INIT(CInputCu)
	m_CuNumber = 0;
	m_algorithm = 0;
	//}}AFX_DATA_INIT
}


void CInputCu::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInputCu)
	DDX_Control(pDX, IDC_TAG, m_inputtag);
	DDX_Text(pDX, IDC_INPUTCU, m_CuNumber);
	DDX_Radio(pDX, IDC_KMEANS1, m_algorithm);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInputCu, CDialog)
	//{{AFX_MSG_MAP(CInputCu)
	ON_BN_CLICKED(IDC_KMEANS1, OnKmeans1)
	ON_BN_CLICKED(IDC_KMEANS2, OnKmeans2)
	ON_BN_CLICKED(IDC_KMEDOID, OnKmedoid)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInputCu message handlers

void CInputCu::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData();
	CDialog::OnOK();
}

void CInputCu::OnCancel() 
{
	// TODO: Add extra cleanup here
	
	CDialog::OnCancel();
}

void CInputCu::OnKmeans1() 
{
	// TODO: Add your control notification handler code here
		m_algorithm=0;
}

void CInputCu::OnKmeans2() 
{
	// TODO: Add your control notification handler code here
		m_algorithm=1;
}

void CInputCu::OnKmedoid() 
{
	// TODO: Add your control notification handler code here
		m_algorithm=2;
}

⌨️ 快捷键说明

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