⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parameterinputdlg.cpp

📁 利用人工智能中的模糊控制算法模拟水温控制的过程
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -