Question: Using C++, vectorname.insert(index, new value) 1. Modify the program to create an equivalent program that uses vector string. Initialize the vector by using the array

Using C++, vectorname.insert(index, new value)

1. Modify the program to create an equivalent program that uses vector string. Initialize the vector by using the array string names ={"a,","b","c","d"}.

2. Use the max_element and min_element algorithms to determine the maximum and minimum values in a vector create for part1.Initialize the vector by using names[]={"a,","axon","zeus","b","mary","c","jones","d"}.

3.Modify and replace element[4] with a new name.

4. Insert a new name at position[3].

5. Sort the vector array in descending order. 6. Delete the second element 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!