InterviewSolution
Saved Bookmarks
| 1. |
- Write a function QDELETE() in C++ to perform delete operation in a LinkedQueue, which contains Passenger numberand Passenger name. Consider thefollowing definition of node in the code.All India 2013struct node{long int Pno;char Pname[20]:node *Link;}; |
|
Answer» e to make a class also to implement LINKED list (Queue):-struct NODE{long INT Pno;char Pname[20]:node *Link;};class QUEUE{ node*rear, *front;public:QUEUE(){ rear= NULL; front=NULL;}void QDELETE();};void QUEUE :: QDELETE();{ if(front!=NULL) { node*TEMP = front; cout< |
|