📄 common.h
字号:
// common.h: interface for the common class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_COMMON_H__1CD452E3_2189_4F71_8BE2_93ABB5A08545__INCLUDED_)
#define AFX_COMMON_H__1CD452E3_2189_4F71_8BE2_93ABB5A08545__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class common
{
public:
common();
virtual ~common();
void sort(int *list, int low, int high);
void sort(int *list, int *list2, int low, int high);
void QuickSort(int *list, int low, int high);
void QuickSort(int *list, int *list2, int low, int high);
private:
int findpivot(int *list, const int& l, const int& h);
int findpivot(int *list, int *list2, const int& l, const int& h);
int partition(int *list, int l, int h);
int partition(int *list, int *list2, int l, int h);
};
#endif // !defined(AFX_COMMON_H__1CD452E3_2189_4F71_8BE2_93ABB5A08545__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -