Write a C++ program that allows a user to play your mixtape, one song at a time, or all at once. The program must contain two classes; one class is to represent a Song (track) and one to represent the Mixtape (playlist). You will then create a playlist/mixtape of songs/tracks in your main function. Songs (or tracks) should be easily created within one line and you should be able to play them. You need at least 4 attributes in the song class, e.g., name, artist, record label, duration, genre, year released, etc. If the user chooses to “play” a track, your program should output a list of statistics about the track (song). You should have the option to play all.
Write a C++
Songs (or tracks) should be easily created within one line and you should be able to play them. You need at least 4 attributes in the song class, e.g., name, artist, record label, duration, genre, year released, etc. If the user chooses to “play” a track, your program should output a list of statistics about the track (song). You should have the option to play all.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images