Setup output to file and sort methods (not implemented)
This commit is contained in:
Binary file not shown.
+13
-4
@@ -4,18 +4,27 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
enum SortType {INSERTION = 0, MERGE, HEAP};
|
||||
|
||||
class Sorter
|
||||
{
|
||||
private:
|
||||
std::string filename;
|
||||
std::vector<std::string> wordList;
|
||||
int lineCount;
|
||||
std::vector<std::string> originalWordList;
|
||||
std::vector<std::string> newWordList;
|
||||
SortType currentType;
|
||||
public:
|
||||
void SetFileName(std::string newName);
|
||||
std::string GetFileName(void);
|
||||
Sorter(std::string newFilename);
|
||||
std::string GetFilename(void);
|
||||
void SetFilename(std::string newName);
|
||||
void SetWordList(void);
|
||||
void RunSorts(void);
|
||||
void OutputResult(void);
|
||||
void PrintToFile(std::string outputFilename);
|
||||
void InsertionSort(void);
|
||||
void MergeSort(void);
|
||||
void HeapSort(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user