Question: Please use C++ pointer only!!! pointer only!!! write a program can add words or delete words. Do not forget to write a CopyList and a
Please use C++ pointer only!!! pointer only!!!
write a program can add words or delete words. Do not forget to write a CopyList and a Search function along with an Allocate, Initialize, and print functions for your list. Set your capacity to 3. Have a debug boolean flag allow printing of a clear message that more space is being allocated whenever you are about to exceed the capacity. A message should also display when you allocate a smaller space for your list. Your output MUST allow me to see when memory management is taking place. Rather than adding one to the capacity of the list, double the capacity when you run out of room. This is a much more realistic method. On remove_entry, reallocate half the space when the size reaches 1/4 of the capacity.
From this point on, instead of string, you will use T.
typedef int T;
Step by Step Solution
There are 3 Steps involved in it
To solve this problem lets break down the task into steps We will create a basic list manager for integers using C pointers managing memory allocation explicitly and featuring the requested functions ... View full answer
Get step-by-step solutions from verified subject matter experts
