I tried to assign an array of pointer to nullptr.
class ToyBox
{
private:
Toy *toyBox[5];
int numberOfItems;
public:
ToyBox()
{
this->numberOfItems = 0;
this->toyBox = {}
}
}
An error throw at this in this->toyBox:
expression must be a modifiable lvalueC/C++(137)
Any suggestion to corrected?