diff options
-rw-r--r-- | fly-tools/MyPair.h | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/fly-tools/MyPair.h b/fly-tools/MyPair.h index 6a2a4fa..0e6518c 100644 --- a/fly-tools/MyPair.h +++ b/fly-tools/MyPair.h @@ -1,30 +1,31 @@ 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; - } - + 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; + } + }; |