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 --- cercle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cercle.cpp') diff --git a/cercle.cpp b/cercle.cpp index 4747258..d2e7f61 100644 --- a/cercle.cpp +++ b/cercle.cpp @@ -18,7 +18,7 @@ int Cercle::getRayon() { return rayon; }; -double Cercle::getAire() { +double Cercle::aire() { return M_PI*pow(rayon,2); }; @@ -30,5 +30,5 @@ void Cercle::afficher(ostream & s) { s << "Cercle (x=" << getAncrage().x << ", y=" << getAncrage().y << ", r=" << getRayon() - << ", aire=" << getAire() << ")\n"; + << ", aire=" << aire() << ")\n"; }; -- cgit v1.2.3