May I recommend structuring the linked list code into functions.
Anyway, there's no reason to make the list doubly linked. Your assignment says that you need a stack and a queue implemented as linked lists. All you need is a linked list where you can push a new value onto either end, and the ability to read and pop one end.



LinkBack URL
About LinkBacks


