DorronElDePS

javi feo

Mar 17th, 2022
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #ifndef _punto_hpp_
  2. #define _punto_hpp_
  3.  
  4. namespace umalcc{
  5. class Punto{
  6. public:
  7. Punto();
  8. ~Punto();
  9. Punto(double a, double b); //Constructor especifico
  10. Punto (const Punto &a); // Constructor de copia
  11. void desplazar(double dx, double dy);
  12. double distancia(const Punto &a) const;
  13. double coorx ()const;
  14. double coory ()const;
  15. Punto &operator=(const Punto &a);
  16. bool operator==(const Punto &a);
  17.  
  18. private:
  19. double x, y;
  20. }
  21. }
  22.  
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment