summaryrefslogtreecommitdiff
path: root/carre.cpp
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-01-12 23:40:59 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-01-12 23:40:59 -0500
commitb4f16386c70bfeab700e7cc129f2f04295aa0059 (patch)
tree8211e50bdf4f22eed2d2f2a19166e3a6f4ae5155 /carre.cpp
parent0ef3e40f726f35b86d79426104234d815cea2bb9 (diff)
vecteur est fomrmes sont finis
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..1d0ad44
--- /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=" << getAire()
+ << ")\n";
+};