sort.h

来自「这是用VC++编的算法分析中的实现!!有每个源程序」· C头文件 代码 · 共 31 行

H
31
字号
// Sort.h: interface for the CSort class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SORT_H__F6BB47E3_E1C0_4971_B3BA_4943788E16B6__INCLUDED_)
#define AFX_SORT_H__F6BB47E3_E1C0_4971_B3BA_4943788E16B6__INCLUDED_

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

class CSort  
{
public:
	CSort(int nArraySize);
	virtual ~CSort();
	void QuickSort(int a[],int p,int r);
	int Partition(int a[],int p,int r);
	void QuickSort(double a[],int p,int r);
	int Partition(double a[],int p,int r);
	void Swap(int a[],int i,int j);
	void Swap(double a[],int i,int j);


public:
	int m_nArraySize;

};

#endif // !defined(AFX_SORT_H__F6BB47E3_E1C0_4971_B3BA_4943788E16B6__INCLUDED_)

⌨️ 快捷键说明

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