Question: I need help with this C++ code This program will allow the user to see a list of teams, add a team to the list,

I need help with this C++ code

I need help with this C++ code This program will allow the

user to see a list of teams, add a team to the

list, or search for a team using an ID 1. Structure Definition

(5 points) First define struct TeamS with an integer field to hold

This program will allow the user to see a list of teams, add a team to the list, or search for a team using an ID 1. Structure Definition (5 points) First define struct TeamS with an integer field to hold an ID, and an array of strings with three elements to hold the names of the team members. In the main function, declare an empty vector of TeamV and also the following arrays const int ID [NUM_TEAMS]123, 321, 456, 789); const string MEMBERS [NUM-TEAMS ] [NUM MEMBERS ] "Sarah", "Joe", "John", "Chris", "Kevin", "James", "Tom", "Kim", "Emily", ("Jill", "Jason", 2. Creating the vector (9 points) Call a function with the following prototype and pass in the empty vector and the array!s void Initialize (vector & TeamV, const int id, const string m [NUM MEMBERS ], int arraySize)i The function should place into the vector the elements of the arrays. For example, the first element of the vector will have team id: 123 and members: Sarah, Joe, and John. The second element of the vector will have team id: 321 and members: Chris, Kevin, and James, and so on 3. The print function (10 points) Back in main, call a function with the following prototype to show that your vector has been populated with the team information: void printList (const vector & TeamV) The function simply prints out the content of the vector

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!