I got my menu function to work, but I didn't utilize find, removeIndex, and removeValue functions. Im talking about these-
4. Write function find that takes as argument a vector and an int value. It returns the index of
the element or -1 if it is not found.
5. Write function removeIndex that takes as argument a vector and an index value. It removes
the element at that index.
6. Write function removeValue that takes as argument a vector and an int value to remove. It removes that element if present. This function calls functions find and removeIndex.
Well, the first stage would be to write the find() function.
Write function find that takes as argument a vector and an int value. It returns the index of the element or -1 if it is not found.
The specification there tells you what the function header should look like, it returns an int, is named find and takes two parameters:
int find(const vector <int>&vec, int value);
Then the code - well - you can probably copy+paste some of your existing code, just a for-loop to iterate through the elements, if it is found, return that index. Otherwise, at the end of the loop, return -1.
Then make sure you are happy with that - test it on its own, without trying to make it part of the implementation of any other function to begin with. Only after coding and testing find(), consider calling it within some of your other functions - it should make those functions much simpler, because some of the complexity is handled elsewhere.