📄 comparesortdlg.h
字号:
// CompareSortDlg.h : header file
//
#include "QuickMerge.h"
#if !defined(AFX_COMPARESORTDLG_H__F5BE9E41_9C06_4644_9081_003EFA9A4F3F__INCLUDED_)
#define AFX_COMPARESORTDLG_H__F5BE9E41_9C06_4644_9081_003EFA9A4F3F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCompareSortDlg dialog
struct SortTime //用来存放排序的时间
{
int Num;
int QTime;
int MTime;
};
class CCompareSortDlg : public CDialog
{
// Construction
public:
public:
int *D;
void OutPut(int* A,int Num); //输出排序结果
void DrawTime(int flag,int Num,int Time); //输出排序所用时间
int counter; //计算排序的组数
SortTime Time[21]; //存储20组数据对应的排序时间
int Mflag; //标记是否已执行归并排序算法
int Qflag; //标记是否已执行快速排序算法
CQuickMerge Sort; //定义一个对象用于排序
CCompareSortDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCompareSortDlg)
enum { IDD = IDD_COMPARESORT_DIALOG };
CSliderCtrl m_Slider;
int m_MinValue;
int m_MaxValue;
int m_Num;
CString m_Sorce;
CString m_Result;
int m_AutoRun;
int m_CAutoRun;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCompareSortDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCompareSortDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnCleanresult();
afx_msg void OnCleansorce();
afx_msg void OnInput();
afx_msg void OnMergesort();
afx_msg void OnQuicksort();
afx_msg void OnRandom();
afx_msg void OnManual();
afx_msg void OnShowresult();
afx_msg void OnShowsorce();
virtual void OnCancel();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnAutoRun();
afx_msg void OnManualRun();
afx_msg void OnSTART();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMPARESORTDLG_H__F5BE9E41_9C06_4644_9081_003EFA9A4F3F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -