ganzhidlg.h

来自「神经网络感知器做的分类器的源码」· C头文件 代码 · 共 77 行

H
77
字号
// ganzhiDlg.h : header file
//
#include "perception.h"

#if !defined(AFX_GANZHIDLG_H__3F84E024_0033_4FEC_BDBC_1D3E9FD55C04__INCLUDED_)
#define AFX_GANZHIDLG_H__3F84E024_0033_4FEC_BDBC_1D3E9FD55C04__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CGanzhiDlg dialog

class CGanzhiDlg : public CDialog
{
// Construction
public:
	CGanzhiDlg(CWnd* pParent = NULL);	// standard constructor
	~CGanzhiDlg();

// Dialog Data
	//{{AFX_DATA(CGanzhiDlg)
	enum { IDD = IDD_GANZHI_DIALOG };
	int		m_epochs;
	double	m_eta;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CGanzhiDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnSelect();
	afx_msg void OnBtnTest();
	afx_msg void OnBtnTrain();
	afx_msg void OnBtnClear();
	afx_msg void OnRadioRed();
	afx_msg void OnRadioBlue();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	BOOL			m_bDrawPoint;
	BOOL			m_bTest;
	BOOL			m_bTrain;
	CPerception		*pPerception;
	int				m_colour;
	double			m_pointArray[100][2];
	double			m_pointType[100];
	int				m_pointNum;
	double			*m_pType2;
	double			**m_pSample2;;
	CPoint			m_point;
	CPoint			m_point2;
	CPoint			m_line_start;
	CPoint			m_line_end;
	
};

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

#endif // !defined(AFX_GANZHIDLG_H__3F84E024_0033_4FEC_BDBC_1D3E9FD55C04__INCLUDED_)

⌨️ 快捷键说明

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