// II17 2005-06 // Tema2/Problema-Region/Punto2D.cpp // 07-12-2005 #include "Punto2D.h" Punto2D::Punto2D (int vx, int vy) : x(vx), y(vy) { } bool Punto2D::operator== (Punto2D p) const { return (x == p.x && y == p.y); } ostream & operator<< (ostream & flujo, Punto2D p) { flujo << '(' << p.x << ',' << p.y << ')'; return flujo; } istream & operator>> (istream & flujo, Punto2D & p) { char separador; flujo >> separador >> p.x >> separador >> p.y >> separador; return flujo; }