-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
25 lines (20 loc) · 677 Bytes
/
main.h
File metadata and controls
25 lines (20 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <sstream>
class AlgorithmLab
{
public:
AlgorithmLab() { m_duplicates = false; }; // constructor
~AlgorithmLab() {}; // de constructor
void WriteToFile(std::vector<int> myVector);
void Insertsort(std::vector<int> unsortedVector);
std::vector<int> openFile(char* file);
bool FindDuplicatesInVector(std::string line, std::vector<int> unsortedvector);
std::vector<int> MergeHalfs(std::vector<int>left, std::vector<int> right);
std::vector<int> Merge_Sort(std::vector<int> unsortedVector);
std::vector<int> Quick_Sort(std::vector<int> unsortedVector);
bool m_duplicates;
private:
};