-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
52 lines (42 loc) · 1.29 KB
/
Copy pathmain.cpp
File metadata and controls
52 lines (42 loc) · 1.29 KB
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
#include "abonent.h"
#include <iostream>
using namespace std;
int main()
{
// while (1) {
Abonent a(1);
cout << a.balance() << endl;
a.balance_plus(10);
cout << a.balance() << endl;
a.balance_plus(20);
cout << a.balance() << endl;
a.call(89060739874, DateTime::get_current(), 10);
cout << "call" << a.balance() << endl;
Abonent b = a;
cout << b.balance() << endl;
b.call(89999999999, DateTime::get_current(), 5);
cout << a.balance() << endl;
cout << b.balance() << endl;
Abonent c(1);
c = a;
a.call(23423423, DateTime::get_current(), 32);
cout << a.balance() << endl;
cout << c.balance() << endl;
a.call(12312312323, DateTime::get_current(), 12);
a.call(89060739874, DateTime(2001, 2, 14), 15);
a.call(13242342222, DateTime(2000, 1, 1), 50);
a.call(89060739874, DateTime::get_current(), 34);
a.call(12312312323, DateTime(2012, 1, 12), 35);
a.call(89060739874, DateTime::get_current(), 34);
a.call(12312312323, DateTime(2012, 1, 12), 35);
a.call(89060739874, DateTime::get_current(), 34);
a.call(12312312323, DateTime(2012, 1, 12), 35);
a.call(89060739874, DateTime::get_current(), 34);
a.call(12312312323, DateTime(2012, 1, 12), 35);
a.history();
a.history(DateTime::get_current());
a.history(89060739874);
a.history(12312312323);
// }
return 0;
}