Пример #1
0
void PrintPoint(Point P){
	printf("(%d,%d)\n",P.GetAbsis(),P.GetOrdinat());
}
Пример #2
0
Point Point::Add(Point P){
 return (Point ((x +P.GetAbsis()),(y+P.GetOrdinat())));
}
Пример #3
0
void Point::AddToMe(Point P){
 x = x + P.GetAbsis();
 y = y +P.GetOrdinat();
}
Пример #4
0
Point Point::Add(Point P1, Point P2){
 return (Point ((P1.GetAbsis()+P2.GetAbsis()), (P1.GetOrdinat()+P2.GetOrdinat())));
}