From 3fb8effa3603e9a9b96d263009fc1397433436ba Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 13 Jan 2023 02:34:01 -0500 Subject: Tout sauf les tests --- rectangle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rectangle.cpp') 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"; }; -- cgit v1.2.3