Question: c++ Start by creating a vector that will hold strings. Add the following strings to your vector in the order given. to, be, or, not,

c++

c++ Start by creating a vector that will hold strings. Add the

Start by creating a vector that will hold strings. Add the following strings to your vector in the order given. "to", "be", "or", "not", "to","be", Create a function that will print out the strings in order. Use your function on the current vector. Print out the vector as it looks right now. Now add the following strings to your vector. "that", "is", "the", "question", "to", "tell Print out the vector. Add the words "William" "Shakespeare" to the FRONT of the vector. Print out the vector. Create a function that will remove any word from the vector that starts with the letter 't'! - You can use string[0] == 't' to check the first letter of a string.. o Use a for loop to scan the array, and use erase to remove a word. o If you remove a word, set i back to zero so that you can check all the words again, this is important because the size will change and you don't want to miss any. Print out the result of the vector after removing the 't' words

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!