-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
60 lines (46 loc) · 752 Bytes
/
test.cpp
File metadata and controls
60 lines (46 loc) · 752 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
55
56
57
58
59
60
#include <iostream>
#include <set>
class Territory{
protected:
bool selected;
std::set<Territory> neighbors;
public:
void select(void);
void unselect(void);
bool whetherselected(void);
}x, y, z;
class Sectors{
protected:
bool controled;
std::set<Territory> countries;
public:
void control(void)
void uncontrol(void)
bool whetercontroled(void)
};
void Territory::select(void)
{
selected = 1;
}
void Territory::unselect(void)
{
selected = 0;
}
bool Territory::whetherselected(void)
{
return(selected);
}
void Sectors::control(void)
{
controled = 1;
}
void Sectors::uncontrol(void)
{
controled = 0;
}
bool Sectors::whethercontroled(void)
{
return(controled);
}
int main(){
}