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

write in c++
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 a std::vector where each word (whitespace delimited) in the parameter str
is an element with all occurrences of the punctuation {!,?. ... }

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 and in your solution. 6 1 #include 2 #include 3 #include

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!