資源簡(jiǎn)介
自定義圖標(biāo),界面美觀。動(dòng)態(tài)生成自定義大小的數(shù)組,并以隨機(jī)數(shù)初始化數(shù)組。
按“手動(dòng)”菜單演示數(shù)組數(shù)據(jù)排序的移動(dòng)過(guò)程,按“暫停”菜單結(jié)束排序演示過(guò)程。
在客戶區(qū)正確顯示當(dāng)前數(shù)組數(shù)據(jù)的移動(dòng)過(guò)程。點(diǎn)擊“手動(dòng)演示”菜單一步一步查看過(guò)程。點(diǎn)擊“自動(dòng)”實(shí)現(xiàn)自動(dòng)演示(每次移動(dòng)間隔1s)。 在自動(dòng)演示過(guò)程中可以按“暫停”進(jìn)行暫停演示按菜單選擇不同排序方法建立不同的文檔視圖演示排序過(guò)程,可以實(shí)現(xiàn)同時(shí)打開(kāi)對(duì)比。實(shí)現(xiàn)冒泡,插入,選擇排序方式。
代碼片段和文件信息
//?BubbleSortChildframe.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“Sort.h“
#include?“BubbleSortChildframe.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBubbleSortChildframe
IMPLEMENT_DYNCREATE(CBubbleSortChildframe?CMDIChildWnd)
CBubbleSortChildframe::CBubbleSortChildframe()
{
}
CBubbleSortChildframe::~CBubbleSortChildframe()
{
}
BEGIN_MESSAGE_MAP(CBubbleSortChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CBubbleSortChildframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////////////
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-01-31?08:16??MFC?多文檔排序\
?????文件????????1101??2017-12-22?15:53??MFC?多文檔排序\BubbleSortChildfr
?????文件????????1435??2017-12-22?15:53??MFC?多文檔排序\BubbleSortChildfr
?????文件????????3100??2017-12-22?17:52??MFC?多文檔排序\BubbleSortView.cpp
?????文件????????1595??2017-12-22?17:29??MFC?多文檔排序\BubbleSortView.h
?????文件????????1744??2017-12-22?15:42??MFC?多文檔排序\ChildFrm.cpp
?????文件????????1397??2017-12-22?11:10??MFC?多文檔排序\ChildFrm.h
?????文件????????1101??2017-12-22?15:52??MFC?多文檔排序\InsertSortChildfr
?????文件????????1435??2017-12-22?15:52??MFC?多文檔排序\InsertSortChildfr
?????文件????????2989??2017-12-22?18:48??MFC?多文檔排序\InsertSortView.cpp
?????文件????????1560??2017-12-22?15:16??MFC?多文檔排序\InsertSortView.h
?????文件????????3887??2017-12-22?17:43??MFC?多文檔排序\MainFrm.cpp
?????文件????????1731??2017-12-22?15:01??MFC?多文檔排序\MainFrm.h
?????文件????????1028??2017-12-22?15:53??MFC?多文檔排序\QuickSortChildfr
?????文件????????1425??2017-12-22?15:39??MFC?多文檔排序\QuickSortChildfr
?????文件????????3217??2017-12-22?17:57??MFC?多文檔排序\Quicksort.cpp
?????文件????????1613??2017-12-22?15:35??MFC?多文檔排序\Quicksort.h
?????文件????????4712??2017-12-22?11:10??MFC?多文檔排序\ReadMe.txt
?????文件???????50652??2017-12-22?18:24??MFC?多文檔排序\Sort.aps
?????文件????????3491??2017-12-22?18:48??MFC?多文檔排序\Sort.clw
?????文件????????4671??2017-12-22?17:42??MFC?多文檔排序\Sort.cpp
?????文件????????5574??2017-12-22?14:41??MFC?多文檔排序\Sort.dsp
?????文件?????????531??2017-12-22?11:10??MFC?多文檔排序\Sort.dsw
?????文件????????1502??2017-12-22?11:14??MFC?多文檔排序\Sort.h
?????文件??????369664??2017-12-22?18:49??MFC?多文檔排序\Sort.ncb
?????文件???????54784??2017-12-22?18:49??MFC?多文檔排序\Sort.opt
?????文件????????3379??2017-12-22?18:48??MFC?多文檔排序\Sort.plg
?????文件???????11683??2017-12-22?16:22??MFC?多文檔排序\Sort.rc
?????文件????????1707??2017-12-22?12:19??MFC?多文檔排序\SortDoc.cpp
?????文件????????1451??2017-12-22?12:09??MFC?多文檔排序\SortDoc.h
?????文件????????2533??2017-12-22?16:03??MFC?多文檔排序\SortView.cpp
............此處省略10個(gè)文件信息
評(píng)論
共有 條評(píng)論