diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-04 17:27:11 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-04 17:27:11 +0100 |
commit | 563028f6dbaad33152a873ca68f4b619839a9589 (patch) | |
tree | 37de244a7e14441b58f55ad904e502e51f2ab163 /converter/cQuicksort.h | |
parent | Added cRedstone to project file (diff) | |
download | cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.gz cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.bz2 cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.lz cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.xz cuberite-563028f6dbaad33152a873ca68f4b619839a9589.tar.zst cuberite-563028f6dbaad33152a873ca68f4b619839a9589.zip |
Diffstat (limited to 'converter/cQuicksort.h')
-rw-r--r-- | converter/cQuicksort.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/converter/cQuicksort.h b/converter/cQuicksort.h new file mode 100644 index 000000000..b9327bd7d --- /dev/null +++ b/converter/cQuicksort.h @@ -0,0 +1,16 @@ +#pragma once + + +class cQuicksort { + + +public: + void quicksort(int*, int, int); + + +private: + int partition(int*, int, int, int); + int median3(int*,int,int); + void swap(int &, int &); + +}; |