Question: c++ with output screenshot please.. thank you Construct a Circular Header linked list of integer numbers. Your program must have the following functions: 1) void
Construct a Circular Header linked list of integer numbers. Your program must have the following functions: 1) void AddNode (int); Inside this function, a node should be inserted at the end of the linked list. 2) void traverse(); A function used to print the linked 3) int deleteBefore (int k) A function to delete a node before the node with the "k" value and return the deleted value. Note: we can't delete the node before the first value since it is the header node. 4) void sum(); A function used to sum the information fields of the nodes and set it to be the information field of the header node. Inside the main function, the user should be able to choose one function at a time from the above functions, and when the entered -1, the program should be terminated. You should also attach a screenshot of the program output. user 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
