From b4f16386c70bfeab700e7cc129f2f04295aa0059 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 12 Jan 2023 23:40:59 -0500 Subject: vecteur est fomrmes sont finis --- carre.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 carre.cpp (limited to 'carre.cpp') 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"; +}; -- cgit v1.2.3