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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started