diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-01-13 19:37:56 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-01-13 19:37:56 -0500 |
commit | 6a20ac2049d7e9fbf827838259911bf0899f46d9 (patch) | |
tree | 4b96dfc05bbd03da1d80bd2369b339dac5041c10 /cercle.h | |
parent | bd3b390064aa8dee26845dc6fcc1b5d79773a167 (diff) | |
parent | 86fbed0811fc4ef36ffb66b3f774df61eb87c24b (diff) |
Fix gitignore merge
Diffstat (limited to 'cercle.h')
-rw-r--r-- | cercle.h | 19 |
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 |