Question: In C++ I want you to write a function that will accept a vector of strings and returns a vector containing the strings in the
In C++
I want you to write a function that will accept a vector of strings and returns a vector containing the strings in the vector parameter that have the longest length. (That is, if there are 10 strings that are tied for being the longest length, the return value is a vector of size 10 containing those strings).
Test Program The test program logic should read in (cin) an arbitrary number of strings, then invoke your function, and output the strings returned to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
