If pointer Front points to the last node in a linked list and Rear points to first node.How to write a code to implement enqueue and dequeue member methods?
Printable View
If pointer Front points to the last node in a linked list and Rear points to first node.How to write a code to implement enqueue and dequeue member methods?
Google is your friend (or, well actually, you shouldn't Google it and try to work out the algorithm yourself first, since it's more educatonal, but alas...)!
First hit for "Queue linked list" is highly informative: http://www.cs.bu.edu/teaching/c/queu...ist/types.html