setting.cpp
来自「用VC编写的K均值聚类算法的源代码」· C++ 代码 · 共 53 行
CPP
53 行
// Setting.cpp : implementation file
//
#include "stdafx.h"
#include "KMA.h"
#include "Setting.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetting dialog
CSetting::CSetting(CWnd* pParent /*=NULL*/)
: CDialog(CSetting::IDD, pParent)
{
//{{AFX_DATA_INIT(CSetting)
m_category = 3;
m_seed1 = 1;
m_seed2 = 51;
m_seed3 = 101;
m_seed4 = 0;
//}}AFX_DATA_INIT
}
void CSetting::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSetting)
DDX_Text(pDX, IDC_CATEGORY, m_category);
DDV_MinMaxInt(pDX, m_category, 1, 4);
DDX_Text(pDX, IDC_SEED1, m_seed1);
DDX_Text(pDX, IDC_SEED2, m_seed2);
DDX_Text(pDX, IDC_SEED3, m_seed3);
DDX_Text(pDX, IDC_SEED4, m_seed4);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSetting, CDialog)
//{{AFX_MSG_MAP(CSetting)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSetting message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?