aboutsummaryrefslogtreecommitdiff
path: root/fly-tools/MyPair.h
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2012-06-14 18:34:23 -0400
committermutantturkey <mutantturke@gmail.com>2012-06-14 18:34:23 -0400
commit53b73dec4d6e71899d183335509591b7c89a419b (patch)
tree256e96682ba4ce1bcb1aa86d228a212a0193197b /fly-tools/MyPair.h
parentbc2747f47bc2153642da518ea8afa7f5b4859819 (diff)
pushing the fly-tools into this repository
Diffstat (limited to 'fly-tools/MyPair.h')
-rw-r--r--fly-tools/MyPair.h30
1 files changed, 30 insertions, 0 deletions
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;
+ }
+
+};