Question: Using C + + : Prepare a contiguous list with all the necessary functions. Use a menu for the basic operations: Append, Insert, Delete, Replace,

Using C++: Prepare a contiguous list with all the necessary functions. Use a menu for the basic operations: Append, Insert, Delete, Replace, Fetch, Traverse, Size of the list, Quit.
You can use: get_command(), int do_command(char c, List &test_list).
For the list: clear(), size(), empty(), full(), traverse(), insert(), retrieve(), replace().
The header list file will contain (listcnt22.cpp)
int size() const;
bool full() const;
bool empty() const;
void clear();
void traverse(void (*visit)(List_entry &));
Error_code retrieve(int position, List_entry &x) const;
Error_code replace(int position, const List_entry &x);
Error_code remove(int position, List_entry &x);
Error_code insert(int position, const List_entry &x);
Include operations: a. insert : abcd, print it, b. abcde -> abcxde, c

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 Programming Questions!