Question: write in c++ In this activity, you will implement std::vector words_to_vector(std::string str) in utilities.cc. This function must: Takes a single std::string as its argument Return



In this activity, you will implement std::vector<:string> words_to_vector(std::string str) in utilities.cc. This function must: Takes a single std::string as its argument Return a std::vector where each word (whitespace delimited) in the parameter str is an element with all occurrences of the punctuation {!,?. ... } removed from it. Consider the following examples (std::string --> std::vector) Hello, World! --> {"Hello", "World"} What is your name? --> {"What", "is", "your", "name" } Who? What? Where? Why? How? --> {"who", "What", "Where", "Why", "How" } Do not include any libraries other than
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
