Question: c++ COSC 1337 Programming Fundamentals 11 Lab 5 Lab 5-Resizing Arrays of Objects Your Program You will continue to modify the Movie Database program that

 c++ COSC 1337 Programming Fundamentals 11 Lab 5 Lab 5-Resizing Arrays
c++

COSC 1337 Programming Fundamentals 11 Lab 5 Lab 5-Resizing Arrays of Objects Your Program You will continue to modify the Movie Database program that we've been expanding on so far. In previous labs, we used a static sized array of 100 elements to store our movies. Now, you will use pointers to dynamically allocate the memory we need, resizing it as necessary when the number of entries exceeds the capacity of the array. To begin, start with an array capable of storing 5 elements. When a new element is added, if there is no more room in the array, dynamically resize the array to be twice as large (5 to 10, 10 to 20, 20 to 40, etc). Remember that resizing the array will also require copying the elements from the original array into the new one. When you are done, submit the completed.cpp file through the Blackboard submission tool. Please name your source file [Firstinitial][LastNamel Lab5.cpp, substituting your own name

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!