shorthestpath.cpp

来自「最短路径算法」· C++ 代码 · 共 52 行

CPP
52
字号
// ShorthestPath.cpp : implementation file
//

#include "stdafx.h"
#include "Algorithms.h"
#include "ShorthestPath.h"

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

/////////////////////////////////////////////////////////////////////////////
// CShorthestPath dialog


CShorthestPath::CShorthestPath(CWnd* pParent /*=NULL*/)
	: CDialog(CShorthestPath::IDD, pParent)
{
	//{{AFX_DATA_INIT(CShorthestPath)
	m_node1 = 0;
	m_node2 = 0;
	//}}AFX_DATA_INIT
}


void CShorthestPath::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CShorthestPath)
	DDX_Text(pDX, IDC_EDIT_NODE1, m_node1);
	DDX_Text(pDX, IDC_EDIT_NODE2, m_node2);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CShorthestPath, CDialog)
	//{{AFX_MSG_MAP(CShorthestPath)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CShorthestPath message handlers

void CShorthestPath::OnOK() 
{
	UpdateData(TRUE);
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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