Guest User

CodeEdit Bug

a guest
Jun 22nd, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. //
  2. //  CPoint.h
  3. //  Point
  4. //
  5. //
  6.  
  7. #ifndef CPoint_h
  8. #define CPoint_h
  9.  
  10. class CPoint
  11. {
  12. private:
  13.     double m_X;
  14.     double m_Y;
  15.    
  16. public:
  17.     CPoint();
  18.     CPoint(double x, double y);
  19.     ~CPoint();
  20.    
  21.     void setXY(double x, double y);
  22.    
  23.     double getX() const;
  24.     double getY() const;
  25.    
  26.     void move(double deltaX, double deltaY);
  27. };
  28.  
  29. #endif /* CPoint_h */
  30.  
Advertisement
Add Comment
Please, Sign In to add comment