Question: In C++ 1. (10 points) Write a program that keeps reading in strings of varied sizes. If an input string has length greater than 1
In C++
1. (10 points) Write a program that keeps reading in strings of varied sizes. If an input string has length greater than 1 , store it in a vector. If an input string has length 1 (a single character), output the string stored in your vector that has the first letter matching the input character. Keep doing this until you read the string "quit", at which point the program ends. Input: For example, the user inputs words "Apple", "Orange", "Banana", "Apricot" and then the character "a" Output: Apple Apricot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
