SlideShare a Scribd company logo
1 of 1
Download to read offline
18.17 LAB: Playlist (output linked list)
Given main(), complete the SongNode class to include the function PrintSongInfo(). Then write the
PrintPlaylist() function in main.cpp to print all songs in the playlist. DO NOT print the dummy
head node.
Ex: If the input is:
the output is:
#include "SongNode.h"
// Constructor
SongNode::SongNode(string songTitleInit, string songLengthInit, string songArtistInit) {
this->songTitle = songTitleInit;
this->songLength = songLengthInit;
this->songArtist = songArtistInit;
this->nextNodeRef = NULL;
}
// Constructor
SongNode::SongNode(string songTitleInit, string songLengthInit, string songArtistInit, SongNode*
nextLoc) {
this->songTitle = songTitleInit;
this->songLength = songLengthInit;
this->songArtist = songArtistInit;
this->nextNodeRef = nextLoc;
}
// insertAfter
void SongNode::InsertAfter(SongNode* nodeLoc) {
SongNode* tmpNext;
tmpNext = this->nextNodeRef;
this->nextNodeRef = nodeLoc;
nodeLoc->nextNodeRef = tmpNext;
}
// Get location pointed by nextNodeRef
SongNode* SongNode::GetNext() {
return this->nextNodeRef;
}
// TODO: Write PrintSongInfo() function
in C++ please, thank you!

More Related Content

Similar to 1817 LAB Playlist output linked list Given main compl.pdf

8.8 Program Playlist (Java)You will be building a linked list. Ma.pdf
8.8 Program Playlist (Java)You will be building a linked list. Ma.pdf8.8 Program Playlist (Java)You will be building a linked list. Ma.pdf
8.8 Program Playlist (Java)You will be building a linked list. Ma.pdfARCHANASTOREKOTA
 
Can someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdfCan someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdfakshpatil4
 
Given main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdfGiven main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdfillyasraja7
 
Hi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdf
Hi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdfHi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdf
Hi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdfapleathers
 
I need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdfI need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdfarihanthtextiles
 
Program 02 Based on the previous problem you should impleme.pdf
Program 02 Based on the previous problem you should impleme.pdfProgram 02 Based on the previous problem you should impleme.pdf
Program 02 Based on the previous problem you should impleme.pdfaddtechglobalmarketi
 
Program 01 For this program you will complete the program in.pdf
Program 01 For this program you will complete the program in.pdfProgram 01 For this program you will complete the program in.pdf
Program 01 For this program you will complete the program in.pdfaddtechglobalmarketi
 
I am having the below compile errors. .pdf
I am having the below compile errors. .pdfI am having the below compile errors. .pdf
I am having the below compile errors. .pdfdbrienmhompsonkath75
 
PFB cpp code for the given problem#include iostream #include .pdf
PFB cpp code for the given problem#include iostream #include .pdfPFB cpp code for the given problem#include iostream #include .pdf
PFB cpp code for the given problem#include iostream #include .pdfmailadmin1
 
PLEASE I need help with my assignment I have to compelet .pdf
PLEASE I need help with my assignment I have to compelet  .pdfPLEASE I need help with my assignment I have to compelet  .pdf
PLEASE I need help with my assignment I have to compelet .pdfankit11134
 
C++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docx
C++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docxC++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docx
C++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docxBrianGHiNewmanv
 
In C++ Plz LAB Artwork label classesconstructors Given m.pdf
In C++ Plz LAB Artwork label classesconstructors Given m.pdfIn C++ Plz LAB Artwork label classesconstructors Given m.pdf
In C++ Plz LAB Artwork label classesconstructors Given m.pdfaarthitimesgd
 
20-13 Programming Project #05A Given the IntNode class- define the Fin.docx
20-13 Programming Project #05A Given the IntNode class- define the Fin.docx20-13 Programming Project #05A Given the IntNode class- define the Fin.docx
20-13 Programming Project #05A Given the IntNode class- define the Fin.docxDavidxyNSimpsons
 
Need help with this java project, as the methods are proving to be p.pdf
Need help with this java project, as the methods are proving to be p.pdfNeed help with this java project, as the methods are proving to be p.pdf
Need help with this java project, as the methods are proving to be p.pdfprajeetjain
 
C++ Programming Search A Linked ListThe Content of songlist.txt.pdf
C++ Programming Search A Linked ListThe Content of songlist.txt.pdfC++ Programming Search A Linked ListThe Content of songlist.txt.pdf
C++ Programming Search A Linked ListThe Content of songlist.txt.pdfherminaherman
 
819 LAB Program Playlist c++ You will be building a li.pdf
819 LAB Program Playlist c++ You will be building a li.pdf819 LAB Program Playlist c++ You will be building a li.pdf
819 LAB Program Playlist c++ You will be building a li.pdfmeenaaarika
 
Many of us have large digital music collections that are not always .pdf
Many of us have large digital music collections that are not always .pdfMany of us have large digital music collections that are not always .pdf
Many of us have large digital music collections that are not always .pdffazanmobiles
 
1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdf1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdfinfo334223
 

Similar to 1817 LAB Playlist output linked list Given main compl.pdf (18)

8.8 Program Playlist (Java)You will be building a linked list. Ma.pdf
8.8 Program Playlist (Java)You will be building a linked list. Ma.pdf8.8 Program Playlist (Java)You will be building a linked list. Ma.pdf
8.8 Program Playlist (Java)You will be building a linked list. Ma.pdf
 
Can someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdfCan someone please help me implement the addSong function .pdf
Can someone please help me implement the addSong function .pdf
 
Given main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdfGiven main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdf
 
Hi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdf
Hi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdfHi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdf
Hi,Please find the Ansswer below.PLAYLIST.h#include iostrea.pdf
 
I need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdfI need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdf
 
Program 02 Based on the previous problem you should impleme.pdf
Program 02 Based on the previous problem you should impleme.pdfProgram 02 Based on the previous problem you should impleme.pdf
Program 02 Based on the previous problem you should impleme.pdf
 
Program 01 For this program you will complete the program in.pdf
Program 01 For this program you will complete the program in.pdfProgram 01 For this program you will complete the program in.pdf
Program 01 For this program you will complete the program in.pdf
 
I am having the below compile errors. .pdf
I am having the below compile errors. .pdfI am having the below compile errors. .pdf
I am having the below compile errors. .pdf
 
PFB cpp code for the given problem#include iostream #include .pdf
PFB cpp code for the given problem#include iostream #include .pdfPFB cpp code for the given problem#include iostream #include .pdf
PFB cpp code for the given problem#include iostream #include .pdf
 
PLEASE I need help with my assignment I have to compelet .pdf
PLEASE I need help with my assignment I have to compelet  .pdfPLEASE I need help with my assignment I have to compelet  .pdf
PLEASE I need help with my assignment I have to compelet .pdf
 
C++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docx
C++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docxC++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docx
C++ 10-25 LAB- Artwork label (classes-constructors) Given main()- comp.docx
 
In C++ Plz LAB Artwork label classesconstructors Given m.pdf
In C++ Plz LAB Artwork label classesconstructors Given m.pdfIn C++ Plz LAB Artwork label classesconstructors Given m.pdf
In C++ Plz LAB Artwork label classesconstructors Given m.pdf
 
20-13 Programming Project #05A Given the IntNode class- define the Fin.docx
20-13 Programming Project #05A Given the IntNode class- define the Fin.docx20-13 Programming Project #05A Given the IntNode class- define the Fin.docx
20-13 Programming Project #05A Given the IntNode class- define the Fin.docx
 
Need help with this java project, as the methods are proving to be p.pdf
Need help with this java project, as the methods are proving to be p.pdfNeed help with this java project, as the methods are proving to be p.pdf
Need help with this java project, as the methods are proving to be p.pdf
 
C++ Programming Search A Linked ListThe Content of songlist.txt.pdf
C++ Programming Search A Linked ListThe Content of songlist.txt.pdfC++ Programming Search A Linked ListThe Content of songlist.txt.pdf
C++ Programming Search A Linked ListThe Content of songlist.txt.pdf
 
819 LAB Program Playlist c++ You will be building a li.pdf
819 LAB Program Playlist c++ You will be building a li.pdf819 LAB Program Playlist c++ You will be building a li.pdf
819 LAB Program Playlist c++ You will be building a li.pdf
 
Many of us have large digital music collections that are not always .pdf
Many of us have large digital music collections that are not always .pdfMany of us have large digital music collections that are not always .pdf
Many of us have large digital music collections that are not always .pdf
 
1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdf1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdf
 

More from spshotham

Write a program that asks a user for two points that are who.pdf
Write a program that asks a user for two points that are who.pdfWrite a program that asks a user for two points that are who.pdf
Write a program that asks a user for two points that are who.pdfspshotham
 
what information do you need Problem 0302 Refer to the Ne.pdf
what information do you need  Problem 0302 Refer to the Ne.pdfwhat information do you need  Problem 0302 Refer to the Ne.pdf
what information do you need Problem 0302 Refer to the Ne.pdfspshotham
 
Versin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdf
Versin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdfVersin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdf
Versin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdfspshotham
 
The data on Table 4 is taken from the 2013 annual report for.pdf
The data on Table 4 is taken from the 2013 annual report for.pdfThe data on Table 4 is taken from the 2013 annual report for.pdf
The data on Table 4 is taken from the 2013 annual report for.pdfspshotham
 
Seleccione una de las tres opciones enumeradas a continuaci.pdf
Seleccione una de las tres opciones enumeradas a continuaci.pdfSeleccione una de las tres opciones enumeradas a continuaci.pdf
Seleccione una de las tres opciones enumeradas a continuaci.pdfspshotham
 
Stellas scores X87 on her first exam for which the entire.pdf
Stellas scores X87 on her first exam for which the entire.pdfStellas scores X87 on her first exam for which the entire.pdf
Stellas scores X87 on her first exam for which the entire.pdfspshotham
 
Relax The General Social Survey asked 1675 people how many .pdf
Relax The General Social Survey asked 1675 people how many .pdfRelax The General Social Survey asked 1675 people how many .pdf
Relax The General Social Survey asked 1675 people how many .pdfspshotham
 
Physician H amp P Stuart Little is a 77yearold man who p.pdf
Physician H amp P Stuart Little is a 77yearold man who p.pdfPhysician H amp P Stuart Little is a 77yearold man who p.pdf
Physician H amp P Stuart Little is a 77yearold man who p.pdfspshotham
 
necesito ayuda para responder las preguntas del artculo por.pdf
necesito ayuda para responder las preguntas del artculo por.pdfnecesito ayuda para responder las preguntas del artculo por.pdf
necesito ayuda para responder las preguntas del artculo por.pdfspshotham
 
Let A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdfLet A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdfspshotham
 
Morrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdfMorrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdfspshotham
 
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdfCopenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdfspshotham
 
Inmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdfInmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdfspshotham
 
Feet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdfFeet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdfspshotham
 
Assignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdfAssignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdfspshotham
 
2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdf2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdfspshotham
 
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdfAequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdfspshotham
 
9 Argument que las personas intentan satisfacer sus neces.pdf
9  Argument que las personas intentan satisfacer sus neces.pdf9  Argument que las personas intentan satisfacer sus neces.pdf
9 Argument que las personas intentan satisfacer sus neces.pdfspshotham
 
3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdf3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdfspshotham
 
b You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdfb You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdfspshotham
 

More from spshotham (20)

Write a program that asks a user for two points that are who.pdf
Write a program that asks a user for two points that are who.pdfWrite a program that asks a user for two points that are who.pdf
Write a program that asks a user for two points that are who.pdf
 
what information do you need Problem 0302 Refer to the Ne.pdf
what information do you need  Problem 0302 Refer to the Ne.pdfwhat information do you need  Problem 0302 Refer to the Ne.pdf
what information do you need Problem 0302 Refer to the Ne.pdf
 
Versin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdf
Versin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdfVersin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdf
Versin09 StartHTML0000000105 EndHTML0000008234 StartFra.pdf
 
The data on Table 4 is taken from the 2013 annual report for.pdf
The data on Table 4 is taken from the 2013 annual report for.pdfThe data on Table 4 is taken from the 2013 annual report for.pdf
The data on Table 4 is taken from the 2013 annual report for.pdf
 
Seleccione una de las tres opciones enumeradas a continuaci.pdf
Seleccione una de las tres opciones enumeradas a continuaci.pdfSeleccione una de las tres opciones enumeradas a continuaci.pdf
Seleccione una de las tres opciones enumeradas a continuaci.pdf
 
Stellas scores X87 on her first exam for which the entire.pdf
Stellas scores X87 on her first exam for which the entire.pdfStellas scores X87 on her first exam for which the entire.pdf
Stellas scores X87 on her first exam for which the entire.pdf
 
Relax The General Social Survey asked 1675 people how many .pdf
Relax The General Social Survey asked 1675 people how many .pdfRelax The General Social Survey asked 1675 people how many .pdf
Relax The General Social Survey asked 1675 people how many .pdf
 
Physician H amp P Stuart Little is a 77yearold man who p.pdf
Physician H amp P Stuart Little is a 77yearold man who p.pdfPhysician H amp P Stuart Little is a 77yearold man who p.pdf
Physician H amp P Stuart Little is a 77yearold man who p.pdf
 
necesito ayuda para responder las preguntas del artculo por.pdf
necesito ayuda para responder las preguntas del artculo por.pdfnecesito ayuda para responder las preguntas del artculo por.pdf
necesito ayuda para responder las preguntas del artculo por.pdf
 
Let A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdfLet A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdf
 
Morrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdfMorrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdf
 
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdfCopenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
 
Inmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdfInmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdf
 
Feet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdfFeet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdf
 
Assignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdfAssignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdf
 
2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdf2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdf
 
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdfAequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
 
9 Argument que las personas intentan satisfacer sus neces.pdf
9  Argument que las personas intentan satisfacer sus neces.pdf9  Argument que las personas intentan satisfacer sus neces.pdf
9 Argument que las personas intentan satisfacer sus neces.pdf
 
3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdf3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdf
 
b You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdfb You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdf
 

Recently uploaded

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfKartik Tiwari
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxRugvedSathawane
 

Recently uploaded (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
 

1817 LAB Playlist output linked list Given main compl.pdf

  • 1. 18.17 LAB: Playlist (output linked list) Given main(), complete the SongNode class to include the function PrintSongInfo(). Then write the PrintPlaylist() function in main.cpp to print all songs in the playlist. DO NOT print the dummy head node. Ex: If the input is: the output is: #include "SongNode.h" // Constructor SongNode::SongNode(string songTitleInit, string songLengthInit, string songArtistInit) { this->songTitle = songTitleInit; this->songLength = songLengthInit; this->songArtist = songArtistInit; this->nextNodeRef = NULL; } // Constructor SongNode::SongNode(string songTitleInit, string songLengthInit, string songArtistInit, SongNode* nextLoc) { this->songTitle = songTitleInit; this->songLength = songLengthInit; this->songArtist = songArtistInit; this->nextNodeRef = nextLoc; } // insertAfter void SongNode::InsertAfter(SongNode* nodeLoc) { SongNode* tmpNext; tmpNext = this->nextNodeRef; this->nextNodeRef = nodeLoc; nodeLoc->nextNodeRef = tmpNext; } // Get location pointed by nextNodeRef SongNode* SongNode::GetNext() { return this->nextNodeRef; } // TODO: Write PrintSongInfo() function in C++ please, thank you!