Creating a generic linked list class/displaying lines at specific times
807601Dec 18 2007 — edited Dec 19 2007...At least, I'm assuming it needs to be a generic linked list. I'm only allowed to create one linked list class.
I need a linked list of song objects. Each song object has a serial number, title, and a linked list of lyrics (with a single line of lyrics making up a node). The lyric and song classes are created separately. I'm assuming that the linked list class needs to use generics because of having to create a linked list of lyric objects and a linked list of song objects, both using the same linked list class. I'm familiar with the basics of both linked lists and generics, but silly as it may seem, I don't know to combine the two. I particularly need help with setting up the node class (within the linked list class), and adding a node to the end of the linked list. It doesn't need to be doubly linked.
My second problem is displaying the lyrics at given time intervals. The time intervals are given as part of the lyrics class, along with a string for the actual lyrics. The intervals are given in seconds, as a double. Each lyric string must be displayed for the given interval before the next string can be displayed. How do I do this?