Question: In C++ CS 3304 Erase Vector Items Exercise part 2 Instructions: Write a function called Erase_Vector_Items. This function will take as input, 2 parameters: 1.

In C++

CS 3304

Erase Vector Items Exercise part 2

Instructions: Write a function called Erase_Vector_Items. This function will take as input, 2 parameters:

1. A vector

2. The item to erase from the vector (if it exists) The post-condition after this function is called is that no element within the vector will contain this item.

Erase_Vector_Items needs to work with vectors of any data-type.

Write a separate function that will output the contents of the vector (of any data-type).

Demonstrate both functions working with 2 different data-types.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!