Hallo,

I am trying to overload the >> sign, but I cant get it to work. Any one know what is wrong?

Code:
class Point
{
      public:
             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
Thank