diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-01-13 19:31:33 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-01-13 19:31:33 -0500 |
commit | 267868847b0885f60aaae43afd4f54ce028181d8 (patch) | |
tree | 1cce415f624760481f2f4cc49d42c65fbd857e55 /carre.cpp | |
parent | 82539db317b616b41b6e16629f19ddb4a49f6cc7 (diff) | |
parent | 86fbed0811fc4ef36ffb66b3f774df61eb87c24b (diff) |
Merge branch 'development'
Diffstat (limited to 'carre.cpp')
-rw-r--r-- | carre.cpp | 15 |
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"; +}; |