示例#1
0
void PrintPoint(Point P){
	printf("(%d,%d)\n",P.GetAbsis(),P.GetOrdinat());
}
示例#2
0
文件: point.cpp 项目: ynov/OOPSep
Point Point::Add(Point P){
 return (Point ((x +P.GetAbsis()),(y+P.GetOrdinat())));
}
示例#3
0
文件: point.cpp 项目: ynov/OOPSep
void Point::AddToMe(Point P){
 x = x + P.GetAbsis();
 y = y +P.GetOrdinat();
}
示例#4
0
文件: point.cpp 项目: ynov/OOPSep
Point Point::Add(Point P1, Point P2){
 return (Point ((P1.GetAbsis()+P2.GetAbsis()), (P1.GetOrdinat()+P2.GetOrdinat())));
}