#include
#include
using namespace std;
int main ()
{
vector v;
// Insert sample integers into the vector:
v.push_back (50);
v.push_back (1);
v.push_back (987);
v.push_back (1001);
unsigned int nElementIndex = 0;
while (nElementIndex < v.size ()){
cout << "Element at position " << nElementIndex;
cout << " is: " << v [nElementIndex] << endl;
++ nElementIndex;
}
return 0;
}