summaryrefslogtreecommitdiff
path: root/carre.cpp
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-01-13 19:37:56 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-01-13 19:37:56 -0500
commit6a20ac2049d7e9fbf827838259911bf0899f46d9 (patch)
tree4b96dfc05bbd03da1d80bd2369b339dac5041c10 /carre.cpp
parentbd3b390064aa8dee26845dc6fcc1b5d79773a167 (diff)
parent86fbed0811fc4ef36ffb66b3f774df61eb87c24b (diff)
Fix gitignore merge
Diffstat (limited to 'carre.cpp')
-rw-r--r--carre.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/carre.cpp b/carre.cpp
new file mode 100644
index 0000000..627eb91
--- /dev/null
+++ b/carre.cpp
@@ -0,0 +1,15 @@
+#include "carre.h"
+
+Carre::Carre(int x, int y, int cote) : Rectangle(x, y, cote, cote) {
+};
+
+Carre::~Carre() {
+};
+
+void Carre::afficher(ostream &s) {
+ s << "Carre(x=" << getAncrage().x
+ << ", y=" << getAncrage().y
+ << ", c=" << getLargeur()
+ << ", a=" << aire()
+ << ")\n";
+};