aboutsummaryrefslogtreecommitdiff
path: root/fly-tools/MyPair.h
blob: 0e6518ce7ee8c57539a3eac168c06d29e170dead (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
31
class MyPair {

  public:

    int first;
    int 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;
    }

};