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: getcommand int docommandchar c List &testlist
For the list: clear size empty full traverse insert retrieve replace
The header list file will contain listcntcpp
int size const;
bool full const;
bool empty const;
void clear;
void traversevoid visitListentry &;
Errorcode retrieveint position, Listentry &x const;
Errorcode replaceint position, const Listentry &x;
Errorcode removeint position, Listentry &x;
Errorcode insertint position, const Listentry &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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
