資源簡介
紅黑樹算法,隨機產生數字,動態生成紅黑樹,可用于演示。

代碼片段和文件信息
//?RBTree.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“RBTree.h“
#include?“RBTreeDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CRBTreeApp
BEGIN_MESSAGE_MAP(CRBTreeApp?CWinApp)
//{{AFX_MSG_MAP(CRBTreeApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CRBTreeApp?construction
CRBTreeApp::CRBTreeApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CRBTreeApp?object
CRBTreeApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CRBTreeApp?initialization
BOOL?CRBTreeApp::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
CRBTreeDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????2105399??2010-05-22?19:30??RBTree\Debug\RBTree.exe
?????文件????2475808??2010-05-22?19:30??RBTree\Debug\RBTree.ilk
?????文件??????13307??2010-05-22?19:30??RBTree\Debug\RBTree.obj
?????文件????5448284??2010-05-22?19:30??RBTree\Debug\RBTree.pch
?????文件????3523584??2010-05-22?19:30??RBTree\Debug\RBTree.pdb
?????文件???????8612??2010-05-22?19:30??RBTree\Debug\RBTree.res
?????文件??????27794??2010-05-22?19:30??RBTree\Debug\RBTreeDlg.obj
?????文件?????105390??2010-05-22?19:30??RBTree\Debug\StdAfx.obj
?????文件??????22568??2010-05-22?19:30??RBTree\Debug\Tree.obj
?????文件?????205824??2010-05-22?19:30??RBTree\Debug\vc60.idb
?????文件?????364544??2010-05-22?19:30??RBTree\Debug\vc60.pdb
?????文件??????35576??2010-05-20?19:10??RBTree\RBTree.aps
?????文件???????1232??2010-05-22?19:32??RBTree\RBTree.clw
?????文件???????2063??2010-05-19?10:08??RBTree\RBTree.cpp
?????文件???????4175??2010-05-20?20:26??RBTree\RBTree.dsp
?????文件????????537??2010-05-19?10:08??RBTree\RBTree.dsw
?????文件???????1324??2010-05-19?10:08??RBTree\RBTree.h
?????文件??????58368??2010-05-22?19:32??RBTree\RBTree.ncb
?????文件??????48640??2010-05-22?19:32??RBTree\RBTree.opt
?????文件???????1593??2010-05-22?19:30??RBTree\RBTree.plg
?????文件???????5394??2010-05-20?19:10??RBTree\RBTree.rc
?????文件???????5689??2010-05-20?19:51??RBTree\RBTreeDlg.cpp
?????文件???????1519??2010-05-20?09:03??RBTree\RBTreeDlg.h
?????文件???????3579??2010-05-19?10:08??RBTree\ReadMe.txt
?????文件???????1078??2010-05-19?10:08??RBTree\res\RBTree.ico
?????文件????????398??2010-05-19?10:08??RBTree\res\RBTree.rc2
?????文件????????776??2010-05-19?12:51??RBTree\resource.h
?????文件????????208??2010-05-19?10:08??RBTree\StdAfx.cpp
?????文件???????1054??2010-05-19?10:08??RBTree\StdAfx.h
?????文件??????14249??2010-05-22?19:28??RBTree\Tree.cpp
............此處省略7個文件信息
評論
共有 條評論