Re: Unexpected type error



justineee wrote:


wordsList.get(y)=wordsList.get(y+1);//this is where
wordsList.get(y+1)=temp;// and here the error

What type of object is wordList? Does it's get() method provide an lvalue that
can be assigned to? [Can any method be an lvalue?]

You would have a much greater chance of getting a useful response if you
provided full context for the error, and the actual error message.

--
Nigel Wade
.



Relevant Pages

  • Re: c
    ... "guna" wrote in message ... > what is LVALUE and RVALUE required error message mean? ... I've never encountered an 'rvalue required' error message. ... perhaps we can help you fix it. ...
    (comp.lang.c)
  • Re: Error : Formal argument requires an lvalue
    ... > error message is: ... > unsigned&) requires an lvalue. ... differs from that of the example. ... Kind regards ...
    (comp.lang.cpp)