Advertisement
mario_mos

geometri.h

Aug 28th, 2023 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #ifndef GEOMETRIE_H
  2. #define GEOMETRIE_H
  3.  
  4.  
  5. class geometrie
  6. {
  7. public:
  8.     geometrie();
  9.     enum  figure {cercle = 1, triangle = 2, rectangle = 3};
  10.     void identify_figure(figure val);
  11.  
  12.  
  13.  
  14.     void airecircle(double rayon);
  15.     void airetriangle(double cote, double hauteur);
  16.     void airerectangle(int largeur, int longueur);
  17.  
  18.     void perimetrecircle(double d);
  19.     void perimetretriangle(int c1, int c2, int c3);
  20.     void perimetrerectangle(int largeur, int longueur);
  21.  
  22. };
  23.  
  24. #endif // GEOMETRIE_H
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement