Standard container vector is declared in header <vector>. It si a template class.
To define a vector you should use a constructor. As it was shown above tj define a variable of type vector you should write
std::vector<float> v( 3 );
In this case each element oof the vvector will be initialized by zero 0.0. And its size will be equal to 3.
float xPro[3] = {0, 0, 0};
is definition of an array. Arrays are built-in types. They have no any functions.
But you can calculate the number of alements in it by using expression
thank you for that explanation. very good!
after some thinking i realized it was dumb of me needing to find the size of an array since the size must be defined upon creation, therefore i would already know the size.