I'm kinda of new at c++, so I need some help. I have to make a function tha books ticket for an event.
  void Event::book(int row, int seat, Date date, char *name, char *note)
{
    if(this->date==date && strcmp(this->name,name)==0)
    {
        if(hall.seatsInHall[row-1][seat-1].isFree()==true)
        {
            hall.seatsInHall[row-1][seat-1].isFree()=false; // here it gives me non-lvalue in assignment
            hall.seatsInHall[row-1][seat-1].getNote()=note; // here it gives me non-lvalue in assignment
            hall.seatsInHall[row-1][seat-1].getNote()=note; // here it gives me non-lvalue in assignment
            cout<<"Seat Booked.";
        }
        else cout<<"This seat is already taken or bought.";
    }
    else cout<<"Error.";
}
What can I do to not show this mistake?
 
    