Yurttas/PL/OOL/Cplusplus/F/05/04/03/00/sort.h

Revision as of 22:47, 6 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="cpp" line start="1" enclose="div">// sort.h #include <cctype> #include <vector> #include <string> #include <functional> using namespace s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 1// sort.h
 2
 3
 4#include <cctype>
 5
 6#include <vector>
 7#include <string>
 8
 9#include <functional>
10
11using namespace std;
12
13extern char get_char(string);
14
15enum AD {Ascending='A',
16         Descending='D'};
17typedef enum AD AD;
18
19enum BIQS {BubbleSort='B',
20           InsertionSort='I',
21           QuickSort='Q',
22           SelectionSort='S'};
23typedef enum BIQS BIQS;
24
25#include "bubblesort.cpp"
26#include "insertionsort.cpp"
27#include "quicksort.cpp"
28#include "selectionsort.cpp"
29
30#include "put_vector_item.cpp"