I am new to the C++ language. I have been starting to use vectors, and have noticed that in all of the code I see to iterate though a vector via indices, the first parameter
Here is a simpler way to iterate and print values in vector.
for(int x: A) // for integer x in vector A cout<< x <<" ";