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

📄 userinputdlg.cpp

📁 一个含有朴素贝耶斯分类方法和决策树分类方法的源代码
💻 CPP
字号:
//********************************************//
//     程序员:巨少辉                          //
//     日期: 2005年11月20日                  //
//     UserInputDlg.cpp : 输入待分类的记录    //
//********************************************//


#include "stdafx.h"
#include "HeartDM.h"
#include "UserInputDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// UserInputDlg dialog

//变量赋初值
UserInputDlg::UserInputDlg(CWnd* pParent /*=NULL*/)
	: CDialog(UserInputDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(UserInputDlg)
	m_PAge = 0;
	m_PCPT = 0;
	m_PEIA = 0;
	m_PFBU = 0;
	m_PMHRA = 0.0f;
	m_PNOMV = 0.0f;
	m_POP = 0.0f;
	m_PRBP = 0.0f;
	m_PRER = 0;
	m_PSCI = 0.0f;
	m_PSex = 0;
	m_PSOPE = 0.0f;
	m_PTHAL = 0;
	//}}AFX_DATA_INIT
}


void UserInputDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(UserInputDlg)
	DDX_Text(pDX, IDC_USERAGE, m_PAge);
	DDX_Text(pDX, IDC_USERCPT, m_PCPT);
	DDX_Text(pDX, IDC_USEREIA, m_PEIA);
	DDX_Text(pDX, IDC_USERFBU, m_PFBU);
	DDX_Text(pDX, IDC_USERMHRA, m_PMHRA);
	DDX_Text(pDX, IDC_USERNOMV, m_PNOMV);
	DDX_Text(pDX, IDC_USEROP, m_POP);
	DDX_Text(pDX, IDC_USERRBP, m_PRBP);
	DDX_Text(pDX, IDC_USERRER, m_PRER);
	DDX_Text(pDX, IDC_USERSCI, m_PSCI);
	DDX_Text(pDX, IDC_USERSEX, m_PSex);
	DDX_Text(pDX, IDC_USERSOPE, m_PSOPE);
	DDX_Text(pDX, IDC_USERTHAL, m_PTHAL);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// UserInputDlg message handlers

⌨️ 快捷键说明

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