Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I never used templates nor queues before and I really need some help(any help).
My problem is that I have to create a class template to implement a generic queue class. Furthermore the elements of the class may be instantiated to any simple data type or to string type. I need to implement the queue by a linked-list for which I need to keep
pointers to the start (Head) and end (Tail) of the list. The new
items need to be always added to the Tail end of the list and the
oldest one removed from the Head of the list.
In my main I need to be able to create multiple queues
(including numeric and string types) and allow the user to add and remove data from each, with output to show the operations performed and values added or removed.
Thank you
I never used templates nor queues before and I really need some help(any help).
My problem is that I have to create a class template to implement a generic queue class. Furthermore the elements of the class may be instantiated to any simple data type or to string type. I need to implement the queue by a linked-list for which I need to keep
pointers to the start (Head) and end (Tail) of the list. The new
items need to be always added to the Tail end of the list and the
oldest one removed from the Head of the list.
In my main I need to be able to create multiple queues
(including numeric and string types) and allow the user to add and remove data from each, with output to show the operations performed and values added or removed.
Thank you