logo CodeStepByStep logo

removeEvenLength

Language/Type: C++ Vector collections
Related Links:

Write a function named removeEvenLength that accepts as a parameter a reference to a vector of strings, and removes all of the strings of even length from it. For example, if the vector initially stores: {"to", "be", "or", "not", "to", "be", "hamlet"}, After being passed to your function, it should store {"not"}.

Function: Write a C++ function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.