aboutsummaryrefslogtreecommitdiff
path: root/week-6/Punt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'week-6/Punt.cpp')
-rw-r--r--week-6/Punt.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/week-6/Punt.cpp b/week-6/Punt.cpp
new file mode 100644
index 0000000..707047e
--- /dev/null
+++ b/week-6/Punt.cpp
@@ -0,0 +1,17 @@
+#include "Punt.h"
+
+Punt::Punt() {
+ this->x = this->y = this->z = 0;
+}
+
+Punt::Punt(int x, int y, int z) {
+ this->x = x;
+ this->y = y;
+ this->z = z;
+}
+
+std::ostream& operator << ( std::ostream& output, const Punt& punt ) {
+ output << "(" << punt.x << "," << punt.y << "," << punt.z << ")";
+ return output;
+}
+