parameter.cpp

来自「bp神经网络应用程序」· C++ 代码 · 共 62 行

CPP
62
字号
// Parameter.cpp : implementation file
//

#include "stdafx.h"
#include "智能岩土工程.h"
#include "Parameter.h"

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

/////////////////////////////////////////////////////////////////////////////
// CParameter property page

IMPLEMENT_DYNCREATE(CParameterPage, CPropertyPage)

CParameterPage::CParameterPage() : CPropertyPage(CParameterPage::IDD)
{
	//{{AFX_DATA_INIT(CParameter)
	m_Error = 0.001;
	m_NUM = 10000;
	m_A = 0.5;
	m_B = 0.6;
	//}}AFX_DATA_INIT
}

CParameterPage::~CParameterPage()
{
}

void CParameterPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CParameter)
	DDX_Control(pDX, IDC_STUDY_COMBO, m_StudyFunction);
	DDX_Text(pDX, IDC_ERROR, m_Error);
	DDX_Text(pDX, IDC_STUDY_NUM, m_NUM);
	DDX_Text(pDX, IDC_STUDY_PARA1, m_A);
	DDX_Text(pDX, IDC_STUDY_PARA2, m_B);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CParameterPage, CPropertyPage)
	//{{AFX_MSG_MAP(CParameter)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CParameter message handlers

BOOL CParameterPage::OnInitDialog() 
{
	CDialog::OnInitDialog();	
	// TODO: Add extra initialization here
	m_StudyFunction.SetCurSel(0);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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