-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.cpp
executable file
·90 lines (83 loc) · 1.62 KB
/
main.cpp
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#include "test_array.hpp"
#include "test_vector.hpp"
#include "test_list.hpp"
#include "test_forwardlist.hpp"
#include "test_deque.hpp"
#include "test_stack.hpp"
#include "test_queue.hpp"
#include "test_multiset.hpp"
#include "test_multimap.hpp"
#include "test_unordered_multiset.hpp"
#include "test_unordered_multimap.hpp"
#include "test_set.hpp"
#include "test_map.hpp"
#include "test_unordered_set.hpp"
#include "test_unordered_map.hpp"
#include "test_slist.hpp"
int main(int argc, char* argv[])
{
int select;
cout << "select: ";
cin >> select;
long totalCount;
cout << "how many elements:";
cin >> totalCount;
srand((unsigned)time(NULL));
switch(select)
{
case 1:
jj01::test_array();
break;
case 2:
jj02::test_vector(totalCount);
break;
case 3:
jj03::test_list(totalCount);
break;
case 4:
jj04::test_forward_list(totalCount);
break;
case 5:
jj05::test_deque(totalCount);
break;
case 6:
jj06::test_multiset(totalCount);
break;
case 7:
jj07::test_multimap(totalCount);
break;
case 8:
jj08::test_unordered_multiset(totalCount);
break;
case 9:
jj09::test_unordered_multimap(totalCount);
break;
#ifndef _WIN32
case 10:
jj10::test_slist(totalCount);
break;
#endif
case 13:
jj13::test_set(totalCount);
break;
case 14:
jj14::test_map(totalCount);
break;
case 15:
jj15::test_unordered_set(totalCount);
break;
case 16:
jj16::test_unordered_map(totalCount);
break;
case 17:
jj17::test_stack(totalCount);
break;
case 18:
jj18::test_queue(totalCount);
break;
default:
break;
}
getchar();
return 0;
}