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

📄 排序算法比较dlg.h

📁 经典排序算法比较次数统计MFC程序
💻 H
字号:
// 排序算法比较Dlg.h : header file
//

#if !defined(AFX_DLG_H__2796DFE6_3661_4BD1_9E75_EEC553200480__INCLUDED_)
#define AFX_DLG_H__2796DFE6_3661_4BD1_9E75_EEC553200480__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

class CMyDlg : public CDialog
{
// Construction
public:
	void CMyDlg::MERGE(int l,int m,int h);
	void CMyDlg::BottomUpSort();
	void CMyDlg::MergeSort(int low,int high);
	int CMyDlg::Parttion(int low,int high);
	void CMyDlg::QuickSort(int low,int high);
	void InsertionSort();
	void SelectSort();
	CMyDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
	int		m_num;
	CString	m_info;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int pivotloc;
	int high;
	int low;
	int h;
	int m;
	int l;
	int count;
	HICON m_hIcon;
	int select;
	int a[5000];

	// Generated message map functions
	//{{AFX_MSG(CMyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRadio1();
	afx_msg void OnRadio2();
	afx_msg void OnRadio3();
	afx_msg void OnRadio4();
	afx_msg void OnRadio5();
	afx_msg void OnBegin();
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLG_H__2796DFE6_3661_4BD1_9E75_EEC553200480__INCLUDED_)

⌨️ 快捷键说明

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