distance.cpp

来自「寻找最短路系统vc实现」· C++ 代码 · 共 51 行

CPP
51
字号
// Distance.cpp : implementation file
//

#include "stdafx.h"
#include "找最短路系统.h"
#include "Distance.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDistance dialog


CDistance::CDistance(CWnd* pParent /*=NULL*/)
	: CDialog(CDistance::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDistance)
	m_distance = 0.0;
	//}}AFX_DATA_INIT
}


void CDistance::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDistance)
	DDX_Text(pDX, IDC_EDIT1, m_distance);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDistance, CDialog)
	//{{AFX_MSG_MAP(CDistance)
	ON_BN_CLICKED(IDC_OKK2, OnOkk2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDistance message handlers

void CDistance::OnOkk2() 
{
	// TODO: Add your control notification handler code here
	UpdateData(true);
	OnOK();
}

⌨️ 快捷键说明

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