Question
C++ Complete the following code with a function that sorts the array of strings (names) #include #include using namespace std; int main() { const int
C++
Complete the following code with a function that sorts the array of strings (names)
#include
#include
using namespace std;
int main()
{
const int NUM_NAMES = 20;
string names[NUM_NAMES] = {"Collins, Bill", "Smith, Bart", "Allen, Jim","Griffin, Jim", "Stamey, Marty", "Rose, Geri","Taylor, Terri", "Johnson, Jill","Allison, Jeff", "Looney, Joe", "Wolfe, Bill","James, Jean", "Weaver, Jim", "Pore, Bob","Rutherford, Greg", "Javens, Renee","Harrison, Rose", "Setzer, Cathy","Pike, Gordon", "Holland, Beth" };
// Insert your code to complete this program
return 0;
}
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