Hello, in the provided boids.h file, the modification method setParticleNumber(int n) seems to fail change the class member variable n, because there exists a local variable named n in arguments. To fix this, we need following code:
void setParticleNumber(int n) { this->n = n; }
Hello, in the provided boids.h file, the modification method setParticleNumber(int n) seems to fail change the class member variable n, because there exists a local variable named n in arguments. To fix this, we need following code:
void setParticleNumber(int n) { this->n = n; }