Unable to traverse queue

@n.nishchaya2000
Your code is wrong in may places. You have confused with queue with a linked list node. You are using queue object and a linked list node interchangeably which is quite wrong. Please declare a new class node and make a queue class using the node class as basis.

If my answer is able to answer your query, please mark the doubt as resolved.

still m not getting my mistake plz try to basically where m wrong

try to tell** basiccally

@n.nishchaya2000
The problem was that head and tail pointers have to be node variables which is the class you would have to make to implement the linked list.
This linked list is further constructed by the class functions of the queue class. But you have used queue * pointers for head and tail which has messed it up. Both of them are totally different.

ok,now i got it, thanku u so much