This program illustrates the insert() member function. Press Enter to continue ... For v we have ... Size = 10 Capacity = 10 Contents: 1 2 3 4 5 6 7 8 9 10 Press Enter to continue ... Now we insert 17, using this call to insert(): p = v.insert(v.begin()+3, 17); Then for v we have ... Size = 11 Capacity = 15 Contents: 1 2 3 17 4 5 6 7 8 9 10 Press Enter to continue ... And the value pointed to by the iterator returned by this call to insert() is also 17. Press Enter to continue ... Next we insert 5 copies of 33, using this call to insert(): v.insert(v.begin()+9, 5, 33); Then for v we have ... Size = 16 Capacity = 22 Contents: 1 2 3 17 4 5 6 7 8 33 33 33 33 33 9 10 Press Enter to continue ... Next we insert some values from an array, using this call to insert(): v.insert(v.begin()+11, a+1, a+4); Then for v we have ... Size = 19 Capacity = 22 Contents: 1 2 3 17 4 5 6 7 8 33 33 2 3 4 33 33 33 9 10 Press Enter to continue ... Finally we insert some values from the vector itself, using this call to insert(): v.insert(v.begin()+7, v.begin()+1, v.begin()+4); Then for v we have ... Size = 22 Capacity = 22 Contents: 1 2 3 17 4 5 6 2 3 17 7 8 33 33 2 3 4 33 33 33 9 10 Press Enter to continue ...