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

📄 ex29view.h

📁 三种排序方法的动态演示
💻 H
字号:
// ex29View.h : interface of the CEx29View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_EX29VIEW_H__2A5E422D_6654_4665_AC43_40B4EF9104FE__INCLUDED_)
#define AFX_EX29VIEW_H__2A5E422D_6654_4665_AC43_40B4EF9104FE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define N 100
#define DELAY 10
UINT ThreadSortBubble(LPVOID lp);
UINT ThreadSortQuick(LPVOID lp);
UINT ThreadSortSelect(LPVOID lp);
void QuickSort(int * data,int s,int t);

class CEx29View : public CView
{
protected: // create from serialization only
	CEx29View();
	DECLARE_DYNCREATE(CEx29View)

// Attributes
public:
	CEx29Doc* GetDocument();
	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEx29View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	CRect m_SortBubbleRect;
	CRect m_SortQuickRect;
	CRect m_SortSelectRect;
	BOOL IsSortSelect;
	BOOL IsSortQuick;
	BOOL IsSortBubble;
	virtual ~CEx29View();
	int m_SortSelect[N];
	int m_SortQuick[N];
	int m_SortBubble[N];
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CEx29View)
	afx_msg void OnSortBubble();
	afx_msg void OnSortQuick();
	afx_msg void OnSortSelect();
	afx_msg void OnSortAll();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ex29View.cpp
inline CEx29Doc* CEx29View::GetDocument()
   { return (CEx29Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_EX29VIEW_H__2A5E422D_6654_4665_AC43_40B4EF9104FE__INCLUDED_)

⌨️ 快捷键说明

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