Given the following header: vector split (string target, string delimiter); implement the function split so that it returns a vector of the strings in target that are separated by the string delimiter. For example: split ("10,20,30", ",") should return a vector with the strings "10", "20", and "30". Similarly, split ("do re mi fa so la ti do", " ") should return a vector with the strings "do", "re","mi", "fa", "so", "la", "ti", and "do". Write a program that inputs two strings and calls your function to split the first target string by the second delimiter string and prints the resulting vector all on line line with elements separated by commas. A successful program should be as below with variable inputs:
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given the following header: vector split (string target, string delimiter); implement the function split so that it returns a vector of the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Given the following header: vector split (string target, string delimiter); implement the function split so that it returns a vector of the strings in target that are separated by the string delimiter.