[Solved] teacher told me not to use static/dynamic vector pointer [closed]
The std::vector<float> class is a class and not a pointer. I think your teacher wants to discourage you from using the c-style arrays: float* array = new float[200]; This might be because using this you have to remember to delete them later: delete[] array; The vector<float> will handle this for you. Plus gives you nice … Read more