-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
47 lines (36 loc) · 771 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <iostream>
#include <vector>
#include <cmath>
#include <stdlib.h>
#include <string>
#include "point.hpp"
#include "point_print.hpp"
#include "tsp_solver.hpp"
using namespace std;
int main()
{
vector<point> array;
cout << "enter the number of points " << endl;
int number;
cin >> number;
cout << "enter points in the format => point_name x y " << endl;
for (int i = 0; i < number; i++)
{
int a, b;
string s;
cin >> s;
cin >> a;
cin >> b;
point defau(a, b, s);
array.push_back(defau);
}
system("CLS");
for (int i = 0; i < number; i++)
{
array[i].showPoint();
}
ListOfPoints(array);
shortest_path(array);
//example
return 0;
}