-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
54 lines (30 loc) · 802 Bytes
/
Copy pathmain.cpp
File metadata and controls
54 lines (30 loc) · 802 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
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
53
54
#include "sim.h"
int main() {
Sim state; // Creates sim class object
state.Config(); // configures object
state.ConfigPops();
state.ConfigRegion();
state.PrintAreaPops();
state.PrintAdjList();
while(state.GetStopSim() != true) { //each sim runs till bool value in sim gets set to true
state.CloseSim();
}
state.ResetAreas();
cout << endl;
while(state.GetStopSim() != true) {
state.DegreeSim();
}
state.ResetAreas();
cout << endl;
while(state.GetStopSim() != true) {
state.RandSim();
}
state.ResetAreas();
cout << endl;
while(state.GetStopSim() != true) {
state.EqSim();
}
cout << endl;
state.PrintResults(); //prints results of the sim
return 0;
}