Ejemplo n.º 1
0
int point::operator== (point other)
{	if (other.where_at(X) == this->location[X]&& other.where_at(Y) == this->location[Y])
		return 1;
	return 0;
}
Ejemplo n.º 2
0
point point::operator+ (point other)
{	point return_val;
	return_val.init( location[X] + other.where_at(X), location[Y] + other.where_at(Y) );
	return return_val;
}