Advertisement
avskyRB

Rettangolo.h

Sep 2nd, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #ifndef RETTAGOLO
  2. #define RETTAGOLO
  3.  
  4. #include <iostream>
  5.  
  6. class Rettangolo
  7. {
  8.   public:
  9.  
  10.     Rettangolo(float b, float a);
  11.  
  12.     Rettangolo();
  13.  
  14.     float Area();
  15.  
  16.     float Diagonale();
  17.  
  18.     float Base()
  19.       { return m_base;}
  20.    
  21.     float Altezza()
  22.       { return m_altezza;}
  23.  
  24.  
  25.   protected:
  26.     float m_base;
  27.     float m_altezza;
  28. };
  29.  
  30. std::ostream& operator<<(std::ostream &o, Rettangolo r);
  31.  
  32. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement