-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
45 lines (32 loc) · 1020 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
// Diego Enrique Jiménez Urgell A01652617
// 2/12/2020
#include <iostream>
#include <vector>
#include <tuple>
#include <map>
using namespace std;
#include "IP.h"
#include "DateTime.h"
#include "ResizingVectorGraph.h"
#include "LogRegister.h"
int main() {
freopen("binnacleFinalProject.txt", "r", stdin);
freopen("fans.txt", "w", stdout);
cout << "Diego Enrique Jiménez Urgell A01652617" << endl;
cout << "23/11/2020\n" << endl;
LogRegister reg = LogRegister();
string line = "";
while (getline(cin, line)){
reg.addConnection(line); // Adding all the entries to the LogRegister object
}
reg.printFans();
freopen("attacks.txt", "w", stdout);
cout << "Diego Enrique Jiménez Urgell A01652617" << endl;
cout << "23/11/2020\n" << endl;
reg.printAttacks();
freopen("groupedAttacks.txt", "w", stdout);
cout << "Diego Enrique Jiménez Urgell A01652617" << endl;
cout << "23/11/2020\n" << endl;
reg.printGroupedAttacks();
return 0;
}