diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-01-13 02:34:01 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-01-13 02:34:01 -0500 |
commit | 3fb8effa3603e9a9b96d263009fc1397433436ba (patch) | |
tree | ae4d7bf573f69245713b07c253a8027ace8d5244 /rectangle.cpp | |
parent | b4f16386c70bfeab700e7cc129f2f04295aa0059 (diff) |
Tout sauf les tests
Diffstat (limited to 'rectangle.cpp')
-rw-r--r-- | rectangle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rectangle.cpp b/rectangle.cpp index 239ea81..f1d23da 100644 --- a/rectangle.cpp +++ b/rectangle.cpp @@ -30,7 +30,7 @@ void Rectangle::setHauteur(int h){ hauteur=h; }; -double Rectangle::getAire(){ +double Rectangle::aire(){ return largeur*hauteur; }; @@ -39,6 +39,6 @@ void Rectangle::afficher(ostream &s){ << ", y=" << getAncrageForme().y << ", l=" << getLargeur() << ", h=" << getHauteur() - << ", aire=" << getAire() + << ", aire=" << aire() << ")\n"; }; |