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

📄 dialoginput.cpp

📁 数据结构的经典实验程序。以全国主要城市为图的顶点, 铁路连接为图的边, 距离作为加权, 设计完成一个最短路径自动查找系统;输入为出发城市和目标城市, 输出为最短路径和距离。
💻 CPP
字号:
// Dialoginput.cpp : implementation file
//

#include "stdafx.h"
#include "Dijkstra_TA.h"
#include "Dialoginput.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialoginput dialog


CDialoginput::CDialoginput(CWnd* pParent /*=NULL*/)
	: CDialog(CDialoginput::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialoginput)
	m_startcity = _T("");
	m_goalcity = _T("");
	//}}AFX_DATA_INIT
}


void CDialoginput::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialoginput)
	DDX_Text(pDX, IDC_EDIT_STARTCITY, m_startcity);
	DDX_Text(pDX, IDC_EDIT_GOALCITY, m_goalcity);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialoginput, CDialog)
	//{{AFX_MSG_MAP(CDialoginput)
	ON_EN_CHANGE(IDC_EDIT_STARTCITY, OnChangeEditStartcity)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialoginput message handlers

void CDialoginput::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(true);
	CDialog::OnOK();
}

void CDialoginput::OnChangeEditStartcity() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	//UpdateData(true);
}

⌨️ 快捷键说明

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