Question: ( in c + + ) Write a program that displays a menu which: asks the user to add or remove nodes to a linked

(in c++)
Write a program that displays a menu which:
asks the user to add or remove nodes to a linked list
includes an option to display the list values
(Use the code down below and complete it)
#include
#include
using namespace std;
struct node
{
int number;
node *next;
};
bool isEmpty(node *head);
char menu();
void insertAsFirstElement(node *&head, node *&last, int number);
void insert(node *&head, node *&last, int number);
void remove(node *&head, node *&last);
void showList(node *current);
int main()
{
node *head = NULL;
node *last = NULL;
char choice;
int number;
cout << endl;
system("pause");
return 0;
}
bool isEmpty(node *head)
{
//insert body
}
char menu()
{
//insert body
}
void inserAsFirstElement(node *&head, node *&last, int number)
{
//insert body
}
void insert(node *&head, node *&last, int number)
{
//insert body
}
void remove(node *&head, node *&last)
{
//insert body
}
void showList(node *current)
{
//insert body
}

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