parameterinputdlg.cpp

来自「利用人工智能中的模糊控制算法模拟水温控制的过程」· C++ 代码 · 共 66 行

CPP
66
字号
// ParameterInputDlg.cpp : implementation file
//

#include "stdafx.h"
#include "FuzzySys.h"
#include "ParameterInputDlg.h"


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

/////////////////////////////////////////////////////////////////////////////
// ParameterInputDlg dialog


ParameterInputDlg::ParameterInputDlg(CWnd* pParent /*=NULL*/)
	: CDialog(ParameterInputDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(ParameterInputDlg)
	m_dE = 0.0;
	m_dDeltaE = 0.0;
	//}}AFX_DATA_INIT
}


void ParameterInputDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ParameterInputDlg)
	DDX_Text(pDX, IDC_PARAMETER_E, m_dE);
	DDV_MinMaxDouble(pDX, m_dE, -4., 4.);
	DDX_Text(pDX, IDC_PARAMETER_DELTAE, m_dDeltaE);
	DDV_MinMaxDouble(pDX, m_dDeltaE, -4., 4.);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(ParameterInputDlg, CDialog)
	//{{AFX_MSG_MAP(ParameterInputDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ParameterInputDlg message handlers

void ParameterInputDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(true);

	CDialog::OnOK();
}

double ParameterInputDlg::GetE()
{
	return m_dE;
}

double ParameterInputDlg::GetDeltaE()
{
	return m_dDeltaE;
}

⌨️ 快捷键说明

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