Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with Queues and Templates ///////////////////

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top