quicksort.h

来自「ssd5 op5的答案」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef QUICKSORT_H
#define QUICKSORT_H

#include "sort.h"

class quicksort : public sort 
{
  private:
    void sortPartition (int left, int right);
    int findPivot (int left, int right);
    int partition (int left, int right);

  protected:
    void init (int how_many, int workload_type);

  public:
     quicksort(int how_many, int workload_type);
     void sortNumbers();

};

#endif

⌨️ 快捷键说明

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