資源簡介
輸入起始城市,目的城市,然后得出它們之間的最短路徑
圖形界面實現

代碼片段和文件信息
//?2.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“2.h“
#include?“2Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy2App
BEGIN_MESSAGE_MAP(CMy2App?CWinApp)
//{{AFX_MSG_MAP(CMy2App)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMy2App?construction
CMy2App::CMy2App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy2App?object
CMy2App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy2App?initialization
BOOL?CMy2App::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CMy2Dlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????135205??2009-07-04?16:37??最短路徑查詢\執行程序\最短路徑查尋系統.exe
?????文件????????257??2009-07-05?14:17??最短路徑查詢\執行程序\程序使用說明.txt
?????文件?????????29??2009-07-04?16:37??最短路徑查詢\最短路徑查尋系統代碼\1.text
?????文件??????23452??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\2.aps
?????文件???????2989??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\2.clw
?????文件???????2015??2009-07-03?20:51??最短路徑查詢\最短路徑查尋系統代碼\2.cpp
?????文件???????4414??2009-07-04?15:33??最短路徑查詢\最短路徑查尋系統代碼\2.dsp
?????文件????????527??2009-07-03?22:05??最短路徑查詢\最短路徑查尋系統代碼\2.dsw
?????文件???????1279??2009-07-03?20:51??最短路徑查詢\最短路徑查尋系統代碼\2.h
?????文件?????107520??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\2.ncb
?????文件??????50688??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\2.opt
?????文件???????2038??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\2.plg
?????文件???????8433??2009-07-04?16:02??最短路徑查詢\最短路徑查尋系統代碼\2.rc
?????文件???????9965??2009-07-04?15:51??最短路徑查詢\最短路徑查尋系統代碼\2Dlg.cpp
?????文件???????1638??2009-07-04?14:09??最短路徑查詢\最短路徑查尋系統代碼\2Dlg.h
?????文件??????????0??2009-07-04?15:45??最短路徑查詢\最短路徑查尋系統代碼\4
?????文件?????????11??2009-07-04?15:59??最短路徑查詢\最短路徑查尋系統代碼\4.text
?????文件?????135273??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\2.exe
?????文件?????231196??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\2.ilk
?????文件??????14759??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\2.obj
?????文件????5497676??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\2.pch
?????文件?????312320??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\2.pdb
?????文件???????3868??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\2.res
?????文件??????65166??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\2Dlg.obj
?????文件??????34912??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\S.obj
?????文件??????15032??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\Save.obj
?????文件?????105900??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\StdAfx.obj
?????文件??????35561??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\T.obj
?????文件?????197632??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\vc60.idb
?????文件?????364544??2009-07-11?10:15??最短路徑查詢\最短路徑查尋系統代碼\Debug\vc60.pdb
............此處省略21個文件信息
評論
共有 條評論