Hi,
I am getting below error after executing below code.
Error: In function main': undefined reference to
Point2D::Point2D(int, int)'
class Point2D
{
public:
Point2D(int,int);
int getX();
int getY();
void setX(int);
void setY(int);
double getScalarValue();
bool operator< (const Point2D &right) const
{
return x < right.x;
}
protected:
int x;
int y;
double distFrOrigin;
void setDistFrOrigin();
};
int main()
{
Point2D abc(2,3);
set<Point2D> P2D;
P2D.insert(abc); // i am getting error here ,i dont know why
return 1;
}