there is another .h and .cpp file that’s connected here but I do not want to put anyone through that suffering so here I will send the important parts.
The image at the bottom displays the “error” within my code. I think I can solve it with an if statement but I’m not sure where I would put it? Any help is appreciated.
SongNode.cpp
void SongNode::PrintSongInfo(){
cout << "Title: " << this->songTitle << endl;
cout << "Length: " << this->songLength << endl;
cout << "Artist: " << this->songArtist << endl << endl;
}
main.cpp
// Print linked list
cout << "LIST OF SONGS" << endl;
cout << "-------------" << endl;
PrintPlaylist(headNode);
return 0;
}

