aboutsummaryrefslogtreecommitdiff
path: root/fly-tools/MyPair.h
diff options
context:
space:
mode:
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;
+ }
+
+};