-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTestSortMerge.cpp
More file actions
48 lines (45 loc) · 816 Bytes
/
TestSortMerge.cpp
File metadata and controls
48 lines (45 loc) · 816 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
43
44
45
46
47
48
/*
* TestSortMerge.cpp
*
* Created on: Apr 23, 2019
* Author: johncmerfeld
*/
#include<iostream>
#include "MemoryRun.h"
#include "Entry.h"
using namespace std;
//int main() {
//
//
// MemoryRun* memRun1 = new MemoryRun(10000);
// for (int i = 100; i > 0; i-= 7) {
// Entry* e = new Entry(i, i);
// memRun1->insert(*e);
// }
//
// MemoryRun* memRun2 = new MemoryRun(10000);
// for (int i = 0; i < 100; i += 5) {
// Entry* e = new Entry(i, i);
// memRun2->insert(*e);// }
//
// memRun1->sort();
// memRun2->sort();
//
// MemoryRun memRun3 = MemoryRun::merge(memRun1, memRun2);
//
// memRun3.sort();
//
// memRun3.print();
// cout << endl;
//
// //memRun1->print();
//
// /*
// for (int i = 0; i < memRun4.getSize(); i++) {
// cout << memRun4.at(i).getKey() << " ";
// } */
//
// return 0;
//}
//
//