📄 kdlg.h
字号:
// kDlg.h : header file
//
#if !defined(AFX_KDLG_H__41888759_C4C2_4A1D_A8BA_576AB4306A0B__INCLUDED_)
#define AFX_KDLG_H__41888759_C4C2_4A1D_A8BA_576AB4306A0B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CKDlg dialog
class CKDlg : public CDialog
{
// Construction
public:
CKDlg(CWnd* pParent = NULL); // standard constructor
BOOL ReadData(CString FileName,float *&data,int &SmpNum,int &DimNum);
BOOL WriteData(CString FileName,int *data,int SmpNum,int DimNum);
BOOL kAveClustering(float * data,int *&Result,int ClsNum,int DimNum,int SmpNum);
float Distance(float *data1,float *data2,int num);
// Dialog Data
//{{AFX_DATA(CKDlg)
enum { IDD = IDD_K_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}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;
CString InFileStr,OutFileStr;
int clsnum;
bool RunFlag1,RunFlag2,RunFlag3;
float *SmpData;
int *Ans;
int Smp,Dim;
// 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 void OnButtonIn();
afx_msg void OnButtonOut();
afx_msg void OnButtonRun();
afx_msg void OnButtonReset();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnEnChangeEditClsnum();
afx_msg void OnEnChangeEditInput();
afx_msg void OnEnChangeEditOutput();
afx_msg void OnBnClickedButtonDraw();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_KDLG_H__41888759_C4C2_4A1D_A8BA_576AB4306A0B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -