Help - Search - Members - Calendar
Full Version: c++ homework
AC Tools Everything Macro > General Discussion > C++/Delphi/VB Development
Sir_William
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
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
how to take the inputed information(title, artists and tracks) and add the info into some kind of node(linked/stack structure).
kgober
sounds like you missed a lot more than a 'couple' lessons.

-ken
DaMOB
blink.gif laugh.gif
Dustaylor
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
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.
Invision Power Board © 2001-2010 Invision Power Services, Inc.