#include #include #include using namespace std; /** Inserts an element into a vector. @param v avector @param pos the position before which to insert the element @param s the element to insert */ void insert(vector& v, int pos, string s) { int last = v.size() -1; /*** insert your code here ***/ } /** Prints all elements in a vector. @param v the vector to print */ void print(vector v) { for(int i=0; i< v.size(); i++) cout << "[" << i << "]" << v[i] << "\n"; } int main() { vector staff(5); staff[0] = "Cracker, Carl"; staff[1] = "Hacker, HarryReindeer, Rudolf"; staff[2] = "Lam, Larry"; staff[3] = "Reindeer, Rudolf"; staff[4] = "Sandman, Susan"; print(staff); int pos; cout << "Insert before which element?"; cin >> pos; insert(staff, pos,"New,Nina"); print(staff); return 0; }