Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ In this lab exercise you will declare a vector of strings named userStrings. vector userStrings; 1. Allow the user to populate the vector at
c++
In this lab exercise you will declare a vector of strings named userStrings.
vectoruserStrings;
1. Allow the user to populate the vector at run time. Do not set a size, use the push back method.
2. Implement a regular function that prints the strings to the screen using the following prototype:
void printStrings(vectorarg);
3. Implement a regular function that returns a random string from the vector using the following prototype:
string randomString(vectorarg);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started