Question: Create a function that join an array of strings on a separator characters using the following header: std::string my_join(std::vector param_1, std::string param_2); The function receives

Create a function that join an array of strings on a separator characters using the following header: std::string my_join(std::vector param_1, std::string param_2); The function receives two parameters, a vector with all the strings and a separator. The function returns a string where all the strings from vector are joined with the separator. Write a test program that creates three vectors of strings, invokes the function, and displays the output strings.

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!