Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _punto_hpp_
- #define _punto_hpp_
- namespace umalcc{
- class Punto{
- public:
- Punto();
- ~Punto();
- Punto(double a, double b); //Constructor especifico
- Punto (const Punto &a); // Constructor de copia
- void desplazar(double dx, double dy);
- double distancia(const Punto &a) const;
- double coorx ()const;
- double coory ()const;
- Punto &operator=(const Punto &a);
- bool operator==(const Punto &a);
- private:
- double x, y;
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment