summaryrefslogtreecommitdiff
path: root/cercle.h
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-01-13 19:31:33 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-01-13 19:31:33 -0500
commit267868847b0885f60aaae43afd4f54ce028181d8 (patch)
tree1cce415f624760481f2f4cc49d42c65fbd857e55 /cercle.h
parent82539db317b616b41b6e16629f19ddb4a49f6cc7 (diff)
parent86fbed0811fc4ef36ffb66b3f774df61eb87c24b (diff)
Merge branch 'development'
Diffstat (limited to 'cercle.h')
-rw-r--r--cercle.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cercle.h b/cercle.h
new file mode 100644
index 0000000..1254193
--- /dev/null
+++ b/cercle.h
@@ -0,0 +1,19 @@
+#ifndef __CERCLE_H__
+#define __CERCLE_H__
+
+#include "forme.h"
+
+class Cercle:public Forme {
+ private:
+ int rayon;
+ public:
+ Cercle(int x=0, int y=0, int r=1);
+ ~Cercle();
+ void setRayon(int r);
+ int getRayon();
+ double aire();
+ double getPerimetre();
+ void afficher(ostream & s);
+};
+
+#endif