Write Album's PrintSongsShorterThan () to print all the songs from the album shorter than the value of the parameter songDuration. Use Song's PrintSong () to print the songs.
#include #include #include using namespace std; class Song { public: void SetNameAndDuration (string songName, int songDuration) { name = songName; duration = songDuration; } void PrintSong () const { cout << name << " - " << duration <> currentName; while (currentName! = "quit") { / * Your code goes here * / } for (i = 0; i < playlist. size (); + +i) { currentSong = playlist. at (i); currentSong. PrintSong (); } return 0; }
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write Album's PrintSongsShorterThan () to print all the songs from the album shorter than the value of the parameter songDuration. Use ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Write Album's PrintSongsShorterThan () to print all the songs from the album shorter than the value of the parameter songDuration. Use Song's PrintSong () to print the songs.