From 53b73dec4d6e71899d183335509591b7c89a419b Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Thu, 14 Jun 2012 18:34:23 -0400 Subject: pushing the fly-tools into this repository --- fly-tools/MyPair.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 fly-tools/MyPair.h (limited to 'fly-tools/MyPair.h') diff --git a/fly-tools/MyPair.h b/fly-tools/MyPair.h new file mode 100644 index 0000000..6a2a4fa --- /dev/null +++ b/fly-tools/MyPair.h @@ -0,0 +1,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; + } + +}; -- cgit v1.2.3