-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
33 lines (24 loc) · 828 Bytes
/
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
#include <iostream>
#include <vector>
#include "disks.h"
using namespace std;
template<typename T>
static void print(T const& v)
{
for (auto i: v)
std::cout << i << endl;
std::cout << std::endl;
}
int main() {
deque<Point> set{ {0, 3}, {2, 2}, {1, 1}, {2, 1}, {3, 4},
{3, 0}, {0, 0}, {3, 3}, {1, 1}, {4, 3},
{5, 2}, {5, 1}, {4, 5}, {0, 2}, {1, 0} };
vector<Point> setV{ {0, 3}, {2, 2}, {1, 1}, {2, 1}, {3, 4},
{3, 0}, {0, 0}, {3, 3}, {1, 1}, {4, 3},
{5, 2}, {5, 1}, {4, 5}, {0, 2}, {1, 0} };
cout << countDisks(set) << endl;
cout << countDisks(setV) << endl;
// auto CH_func = func<deque<Point>, deque<Point>&>(getConvexHull);
// cout << count_disks(CH_func, set) << endl;
return 0;
}