Well there are for loops in C++, hence VEXcode Pro V5 Text has for loops!
https://www.learncpp.com/cpp-tutorial/57-for-statements/
There are a lot of other resources about using the Vision sensor.
Using the search bar will give even more than the ones I have included below.