Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. TP3_300
  2.  
  3. #ifndef Header_h
  4. #define Header_h
  5.  
  6. #include <iostream>
  7.  
  8. using namespace std;
  9.  
  10. class Rectangle
  11. {
  12. private:
  13. int m_x; //initialisation des attributs
  14. int m_y;
  15.  
  16. public:
  17. Rectangle(); //constructeur
  18. Rectangle(int x,int y);
  19. ~Rectangle(); //destructeur
  20. int perimetre();
  21. int aire();
  22. void display();
  23. int getm_x() const;
  24. int getm_y() const;
  25.  
  26.  
  27. };
  28.  
  29. #endif /* Header_h */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement