Home Segments Top Top Previous Next

567: Mainline

To obtain the number of elements in a vector, you use the size method:

v.size() 

Note that size is a method; it is not an instance variable.