datainput.cpp

来自「神经网络的bp算法。学神经网络的基础经典算法」· C++ 代码 · 共 69 行

CPP
69
字号
// DataInput.cpp : implementation file
//

#include "stdafx.h"
#include "test.h"
#include "DataInput.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDataInput dialog


CDataInput::CDataInput(CWnd* pParent /*=NULL*/)
	: CDialog(CDataInput::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDataInput)
	m_nHidden = 1;
	m_nInput = 1;
	m_dLearn = 0.5;
	m_nOut = 1;
	m_nMode = 1;
	//}}AFX_DATA_INIT
}


void CDataInput::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDataInput)
	DDX_Text(pDX, IDC_EDIT_HIDDEN, m_nHidden);
	DDV_MinMaxInt(pDX, m_nHidden, 1, 25);
	DDX_Text(pDX, IDC_EDIT_INPUT, m_nInput);
	DDV_MinMaxInt(pDX, m_nInput, 1, 25);
	DDX_Text(pDX, IDC_EDIT_LEARN, m_dLearn);
	DDX_Text(pDX, IDC_EDIT_OUT, m_nOut);
	DDV_MinMaxInt(pDX, m_nOut, 1, 8);
	DDX_Text(pDX, IDC_EDIT_MODE, m_nMode);
	DDV_MinMaxInt(pDX, m_nMode, 1, 100);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDataInput, CDialog)
	//{{AFX_MSG_MAP(CDataInput)
	ON_BN_CLICKED(ID_KEY_OK, OnKeyOk)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDataInput message handlers

void CDataInput::OnOK() 
{
	// TODO: Add extra validation here
	TRACE("\n---ONOK()---\n");
}

void CDataInput::OnKeyOk() 
{
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	CDialog::OnOK();
}

⌨️ 快捷键说明

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