Objective
In this lab, we will create a new version of the song list that uses Objects and linked list data structure.
Requirements
- Update songnode.h
- Define a default constructor and a parameterized constructor that takes in genre, artist, title
- Add pointers for next and previous
- Add accessors and mutators for the next and prev
- Update songlist.h: add pointers to head and tail of the linked list
- Update songlist.cpp
- Ignore the moveDisplayForward and movedisplayBackwards they are for Lab 8.2
- Define addSong, including code to create a SongNode and insert it into the linked list at the end
- Define createFromFile use
ifstream
and getline()
to read in songs and build up a linked list.
- Define print(), which will print the first 10 nodes from the linked list.
Steps to Complete
- Implement the requirements
- Compile and test the program
- Run /challenge/tester
- Get flag
Connect with SSH
Link your
SSH key, then connect with:
ssh hacker@pwn.college