📄 sort.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -