class CDeuxPoint : public CPoint
{
public:
CPoint point1;
CPoint point2;
CDeuxPoint();
~CDeuxPoint();
CDeuxPoint(CDeuxpoint&);
CDeuxPoint& operator =(CDeuxpoint&);
}
CDeuxPoint::CDeuxPoint()
{
point1 = CPoint(0,0);
point2 = CPoint(0,0);
}
CDeuxPoint::~CDeuxPoint()
{
}
CDeuxPoint::CDeuxPoint(CDeuxPoint& cdeuxpoint)
{
(*this).point1 = cdeuxpoint.point1;
(*this).point2 = cdeuxpoint.point2;
}
CDeuxPoint& CDeuxPoint::operator =(CDeuxPoint& cdeuxpoint)
{
(*this).point1 = cdeuxpoint.point1;
(*this).point2 = cdeuxpoint.point2;
return *this;
}
Lire les commentaires | Laisser un commentaire