MENU
Question -

Give the necessary declaration of linkedтАЩ implemented Queue containing players information (as defined in the following definition of Node). Also write a user defined function in C++ to delete one PlayerтАЩs information from the Queue.

struct node┬а ┬а
{
int Player No ;
char PlayerName[20];
Node*Link;
}



Answer -

NODE *QUEUEDEL(Node * front, int val, char val2[ ])

{
Node *temp;
if (front ==NULL)┬а ┬а [1]
cout<<"Queue EMPTY";
{
else
{
temp=front ;
temp┬оPlayerNo=val;┬а ┬а [1]
strcpy (temp┬оPlayerName, val2);┬а
front=front┬оLink;┬а ┬а [1]
delete temp;
}
return (front);
}┬а [1]

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×