Advertisement
mario_mos

main.cpp

Aug 28th, 2023 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2. #include"geometrie.h"
  3. #include"geometrie.cpp"
  4. #include <stdio.h>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {    
  10.     geometrie identify_figure(2);
  11.  
  12.     geometrie cercle_a;
  13.     geometrie triangle_a;
  14.     geometrie rectangle_a;
  15.  
  16.     cercle_a.airecircle(10.0);
  17.     triangle_a.airetriangle(5.0,4.0);
  18.     rectangle_a.airerectangle(10,6);
  19.  
  20.     geometrie cercle_p;
  21.     geometrie triangle_p;
  22.     geometrie rectangle_p;
  23.  
  24.  
  25.     cercle_p.perimetrecircle(10.0);
  26.     triangle_p.perimetretriangle(5,10,4);
  27.     rectangle_p.perimetrerectangle(10,6);
  28.  
  29.  
  30.  
  31.     return 0;
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement