Write a point class that represents a 2-D point in a plane. Find the distance between two points and check if the two points are equal or not in C++.