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

📄 k均值dlg.h

📁 本程序通过k均值算法对两类进行分类。通过任意选择初始点
💻 H
字号:
// K均值Dlg.h : header file
//

#if !defined(AFX_KDLG_H__47275A84_9D85_46F9_9930_F833DF29DF1C__INCLUDED_)
#define AFX_KDLG_H__47275A84_9D85_46F9_9930_F833DF29DF1C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CKDlg dialog
#include"ButtonST.h"
#include"MyStatic.h"
class CKDlg : public CDialog
{
// Construction
public:
	CKDlg(CWnd* pParent = NULL);	// standard constructor
    CBitmap mybitmap;
	double pointc1[2],pointc2[2];
		int z;
	int point[36];
	BOOL flag,dot1,dot2,dot;
// Dialog Data
	//{{AFX_DATA(CKDlg)
	enum { IDD = IDD_K_DIALOG };
	CMyStatic	m_t5;
	CMyStatic	m_t4;
	CMyStatic	m_t3;
	CMyStatic	m_t2;
	CMyStatic	m_t1;
	CButtonST	m_b2;
	CButtonST	m_b1;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CKDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_KDLG_H__47275A84_9D85_46F9_9930_F833DF29DF1C__INCLUDED_)

⌨️ 快捷键说明

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