Sir_William
Apr 16 2004, 01:47 AM
so im stressing out over my first class in C++, then i thought, why not goto the boards? so how about it? anyone interested in helping me out? ive done good most semester but have missed a couple of lessons latly and didnt quite pick up links/stacks. i have to use nodes to keep up with CDs. i need them to keep track of artist, title and tracks on the cd. i have to have it print by artist and print by title. i have part of a program going, but not quite working. i mainly need help on creating and using the stack. i took a couple of classes in java, so i understand the concept, but dont know the code. who wants to play tutor?
kgober
Apr 16 2004, 08:57 PM
not me.
is your question more about how to use pointers, how to dynamically allocate new nodes as needed, or how the stack data structure works?
-ken
Sir_William
Apr 16 2004, 11:22 PM
how to take the inputed information(title, artists and tracks) and add the info into some kind of node(linked/stack structure).
kgober
Apr 17 2004, 01:20 AM
sounds like you missed a lot more than a 'couple' lessons.
-ken
DaMOB
Apr 17 2004, 01:39 AM
Dustaylor
Apr 17 2004, 07:46 PM
cant get on my internet now, so im on my roommates(sir william). i think i was acctually there when we did it. we made a program to keep up with students and their grades, but he went a little bit too quick for me to catch all the commands.
Tanthanalis
May 17 2004, 11:47 PM
Are you making a stack for each artist or what? What you said isnt very clear in itself to me at least. If a stack for each artist, push the name of the song onto the stack. simple as that.
If you want a single linked list for all the songs of all the artists, break the program down into smaller pieces. How would you make a linked list for one artist's songs? Use that solution, dont worry about how it works, and link together a bunch of artists.
if you're still confused let me know, i hope that helped some.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.