Question: A vector is a data structure similar to an array. Unlike an array, a vector has the capability of changing its size while the program
A vector is a data structure similar to an array. Unlike an array, a vector has the capability of changing its size while the program is running. For this project you are to implement a vector class. While a vector can hold any data type, we will be making this class only for a vector of integers. Add parameters and return types as needed as we discussed in class. The Set and Get functions will take in an element position, this position should be checked to make sure it is currently in the vector.
I have to show
Pop_back
Push_back
expand
shrink
Set_element
Get_element
current size
max size
pointers for vectors
while using Classes in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
