c++ vector loop delete
- Create a vector of integers.
- Populate the vector with some elements.
- Use a for loop to iterate through the vector.
- Inside the loop, check if the current element meets a certain condition.
- If the condition is met, use the erase method of the vector to remove the current element.
- Continue iterating through the vector until all elements meeting the condition have been removed.