I have the following class, which I friended with cout and now I'm trying to friend it with cin but I get an error... Could anyone help me, or tell me what I've done wrong?
error:
c:\mingw\bin../lib/gcc/mingw32/4.6.1/include/c++/bits/stl_algo.h:2215:4: error: passing 'const RAngle' as 'this' argument of 'int RAngle::operator<(RAngle)' discards qualifiers [-fpermissive]
class RAngle:
class RAngle
{
    private:
        int *x,*y,*l;
    public:
        int solution,prec;
        RAngle(){
            this->x = 0;
            this->y = 0;
            this->l = 0;
        }
        RAngle(int i,int j,int k){
            this->x = &i;
            this->y = &j;
            this->l = &k;
        }
    friend istream& operator >>( istream& is, RAngle &ra)
    {
        is >> ra->x;
        is >> ra->y;
        is >> ra->l;
        return is ;
    }
}
 
     
     
    