-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSort.h
More file actions
42 lines (31 loc) · 702 Bytes
/
Copy pathSort.h
File metadata and controls
42 lines (31 loc) · 702 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef SORT_H_INCLUDED
#define SORT_H_INCLUDED
#include <string>
#include <vector>
#include "InputFile.h"
#include "OutputFile.h"
#include <algorithm>
#include <unistd.h>
/**
* Sortowanie liczb całkowitych w pliku.
*
* @Kamil
*/
using namespace std;
class Sort{
unsigned int box; //dlugość bloków
string file_name;
string tmpA;
string tmpB;
vector <string> memory;
void fmerge();
void download(InputFile &file);
void update();
void merge();
void fsort();
static bool compare(string one, string two);
public:
Sort (unsigned int b=1000000,string n="sort.txt") throw (invalid_argument);
void run();
};
#endif // SORT_H_INCLUDED