-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (20 loc) · 661 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (20 loc) · 661 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
#include <iostream>
#include "History.hpp"
#include "Transaction.hpp"
#ifndef MARMOSET_TESTING
unsigned int Transaction::assigned_trans_id = 0;
int main() {
History trans_history{};
trans_history.read_history();
std::cout << "[Starting history]:" << std::endl;
trans_history.print();
trans_history.sort_by_date();
std::cout << "[Sorted ]:" << std::endl;
trans_history.print();
trans_history.update_acb_cgl();
trans_history.print();
std::cout << "[CGL for 2018 ]: " << trans_history.compute_cgl(2018) << std::endl;
std::cout << "[CGL for 2019 ]: " << trans_history.compute_cgl(2019) << std::endl;
return 0;
}
#endif