modeldlg.h

来自「C均值法模式识别算法的VC实现」· C头文件 代码 · 共 64 行

H
64
字号
// modelDlg.h : header file
//

#if !defined(AFX_MODELDLG_H__E225EC12_A481_4AAE_A0E8_00E532915747__INCLUDED_)
#define AFX_MODELDLG_H__E225EC12_A481_4AAE_A0E8_00E532915747__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//#include "arry.h"
#include "cluster.h"
#define max_size 50
/////////////////////////////////////////////////////////////////////////////
// CModelDlg dialog

class CModelDlg : public CDialog
{
// Construction
public:
	UINT count;
	BOOL Center();
	CArry  X[max_size];
	CCluster C[max_size];
	UINT n;
	CModelDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CModelDlg)
	enum { IDD = IDD_MODEL_DIALOG };
	CListBox	m_Result;
	CListBox	m_List;
	float		m_1;
	float		m_2;
	UINT	m_count;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CModelDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CModelDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBinput();
	afx_msg void OnBfen();
	afx_msg void OnBrest();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MODELDLG_H__E225EC12_A481_4AAE_A0E8_00E532915747__INCLUDED_)

⌨️ 快捷键说明

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