cjudgedlg.cpp

来自「研究生课程数值分析的Newton迭代算法」· C++ 代码 · 共 85 行

CPP
85
字号
// CJUDGEDLG.cpp : implementation file
//

#include "stdafx.h"
#include "083007_NA.h"
#include "CJUDGEDLG.h"

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

/////////////////////////////////////////////////////////////////////////////
// CJUDGEDLG dialog


CJUDGEDLG::CJUDGEDLG(CWnd* pParent /*=NULL*/)
	: CDialog(CJUDGEDLG::IDD, pParent)
{
	//{{AFX_DATA_INIT(CJUDGEDLG)
	m_start = 0.0f;
	m_wucha = 0.00005;
	//}}AFX_DATA_INIT
}


void CJUDGEDLG::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CJUDGEDLG)
	DDX_Text(pDX, IDC_start, m_start);
	DDX_Text(pDX, IDC_WUCHA, m_wucha);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CJUDGEDLG, CDialog)
	//{{AFX_MSG_MAP(CJUDGEDLG)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
	ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
	ON_BN_CLICKED(IDC_RADIO5, OnRadio5)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CJUDGEDLG message handlers

void CJUDGEDLG::OnRadio1() 
{
	range=1;
	// TODO: Add your control notification handler code here
	
}

void CJUDGEDLG::OnRadio2() 
{
	range=2;
	// TODO: Add your control notification handler code here
	
}

void CJUDGEDLG::OnRadio3() 
{
	range=3;
	// TODO: Add your control notification handler code here
	
}

void CJUDGEDLG::OnRadio4() 
{
	range=4;
	// TODO: Add your control notification handler code here
	
}

void CJUDGEDLG::OnRadio5() 
{
	range=5;
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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