Question: PLEASE HELP WITH C++!!! URGENT!!! Use visual studio to create a new C++ project. Your required in this task to impalement your own vector class.

PLEASE HELP WITH C++!!! URGENT!!!

Use visual studio to create a new C++ project. Your required in this task to impalement your own vector class. Your class is named Custom_Vector. The class includes at least following member functions:

A default constructor that initialize your custom vector objects.

A destructor to release the memory to the heap.

push_back(string item) function that appends elements to the end of the vector.

pop() function that removes the last element of your vector and returns it.

disp() function that displays the elements of the vector.

size() function that returns the number of elements in the vector.

at(int index) function that returns the element at the position index (assume that the first

element in your vector at position 1.)

Implement a main function to test your method. Your class accepts only string values. Therefore, you do not need to use templates.

For example, when I use the following main function:

int main(){ Custom_vector vector1;

vector1.push_back("apples"); vector1.push_back("bananas"); vector1.push_back("pineapples");

vector1.disp(); cout<<"The vector size = "<

cout< "<

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!