Question: void Queue::enQueue (int value); The function is a member of a class called Queue. Write the function definition only for enQueue. All other function are

void Queue::enQueue (int value); The function is a member of a class called Queue. Write the function definition only for enQueue. All other function are already there and you do not need to write them here. Given below is the class definition: struct node int value; node *next; class Queue public: Queue(node* _front, node _rear) front -_front; rear rear node* deQueue(); void display(); void enQueue(int value); private node *front; node rear; For example: Test Result q.enQueue (3) 3456 q.enQueue(4); q.enQueue (5); q.enQueue (6) q.display()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
