I am trying to overload the >> sign, but I cant get it to work. Any one know what is wrong?
void operator>>(ifstream &input, const Point &p);
void Point::operator>>(ifstream &input, const Point &p)
input >> p.x >> p.y;
declaration of `operator>>' as non-function