getting size of a vector

This is a discussion on getting size of a vector within the C++ Programming forums, part of the General Programming Boards category; For example...
Code:
for(int i = 0; i < sizeOfVecHere; i ++)
cout << vec[i];
Thanks...