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

📄 initparameter.cpp

📁 无线传感器网络mrps协议算法的vc实现算法
💻 CPP
字号:
// InitParameter.cpp : implementation file
//

#include "stdafx.h"
#include "Wsn.h"
#include "InitParameter.h"

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

/////////////////////////////////////////////////////////////////////////////
// CInitParameter dialog


CInitParameter::CInitParameter(CWnd* pParent /*=NULL*/)
	: CDialog(CInitParameter::IDD, pParent)
{
	//{{AFX_DATA_INIT(CInitParameter)
	m_rectwidth = 100;
	m_rectlenth = 100;
	m_vcellnum = 10;
	m_sink_position = 100;
	m_node_num = 100;
	m_initnode_energy = 2;
	m_hcellnum = 10;
	m_datasize = 2000;
	//}}AFX_DATA_INIT
}


void CInitParameter::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInitParameter)
	DDX_Text(pDX, IDC_RECTWIDTH, m_rectwidth);
	DDV_MinMaxInt(pDX, m_rectwidth, 100, 1000);
	DDX_Text(pDX, IDC_RECTLENTH, m_rectlenth);
	DDV_MinMaxInt(pDX, m_rectlenth, 100, 1000);
	DDX_Text(pDX, IDC_VCELLNUM, m_vcellnum);
	DDV_MinMaxInt(pDX, m_vcellnum, 1, 20);
	DDX_Text(pDX, IDC_POSITION, m_sink_position);
	DDV_MinMaxInt(pDX, m_sink_position, 100, 1000);
	DDX_Text(pDX, IDC_NODENUM, m_node_num);
	DDV_MinMaxInt(pDX, m_node_num, 50, 300);
	DDX_Text(pDX, IDC_INENERGY, m_initnode_energy);
	DDV_MinMaxLong(pDX, m_initnode_energy, 1, 10);
	DDX_Text(pDX, IDC_HCELLNUM, m_hcellnum);
	DDV_MinMaxInt(pDX, m_hcellnum, 1, 20);
	DDX_Text(pDX, IDC_DATASIZE, m_datasize);
	DDV_MinMaxInt(pDX, m_datasize, 100, 5000);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInitParameter, CDialog)
	//{{AFX_MSG_MAP(CInitParameter)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInitParameter message handlers

⌨️ 快捷键说明

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