aboutsummaryrefslogtreecommitdiff
path: root/fly-tools/MyPair.h
blob: 6a2a4fa3ea51c891005bc89194b663f347f0a9d8 (plain)
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
class MyPair {

public:
	int first, second;
	MyPair(int x, int y) {
	
		this->first = x;
		this->second = y;
		
	}
	MyPair() {
		
		this->first = -1;
		this->second = -1;
		
	}
	MyPair(const MyPair &f) {
		this->first = f.getX();
		this->second = f.getY();
		
	}
	int getX() const {
		return this->first;
	}

	int getY() const {
		return this->second;
	}
	
};