Question: Replace your template Array class from, Working with Templates, with an STL vector. Create a vector of student instances. Use vector operations to insert, retrieve,

Replace your template Array class from, Working with Templates, with an STL vector. Create a vector of student instances. Use vector operations to insert, retrieve, print, compare, and remove objects from the vector. Alternatively, utilize an STL 1ist. Use this opportunity to utilize the STL documentation to navigate the full set of operations available for these classes.

a. Consider what operators, if any, you will need to overload. Consider whether you will need an iterator to provide safe interleaved access to your collection.

b. Create a second vector of student instances. Assign one to another. Print both vectors.

Step by Step Solution

3.51 Rating (161 Votes )

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 A Practical In Depth Guide C++ Questions!