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

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

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