8.18 LAB: Playlist (output linked list) Given main(), complete the songNode class to include the function PrintSonginfo(
Posted: Tue Jul 12, 2022 8:09 am
Output is nearly correct, but whitespace differs. See highlights below. Input Your output Stomp! 380 The Brothers Johnson The Dude 337 Quincy Jones You Don't Own Me 151 Lesley Gore -1 LIST OF SONGS Title: Stomp! Length: 380 Artist: The Brothers Johnson Title: The Dude Length: 337 Artist: Quincy Jones Title: You Don't Own Me Length: 151 Artist: Lesley Gore LIST OF SONGS Title: Stomp! Length: 380 Artist: The Brothers Johnson Special charact
Title: Digital Love Length: 298 Artist: Daft Punk 3: Unit test Title: Nice For What Length: 204 Artist: Drake L LIST OF SONGS 1 Title: Dirty Computer Length: 119 Artist: Janelle MonĂ¡e Title: Frontin' Length: 241 Artist: Pharrell Williams Expected output Title: Mr. Brightside Length: 223 Artist: The Killers Title: Digital Love Length: 298 Artist: Daft Punk Title: Nice For What Length: 204 Artist: Drake
24 } 25 26 // Get location pointed by nextNodeRef 27 SongNode* SongNode::GetNext() { 28 return this->nextNodeRef; 29 } 30 31 void SongNode::PrintSongInfo(){ 32 33 //print the details 34 35 cout<<("Title: " + this->songTitle)<<endl; 36 cout<<("Length: cout<<("Artist: 37 38 67800 } " + this->songLength)<<endl; " + this->songArtist) <<endl;