Question: #include helpers.h void promptSongSelection ( Playlist allSongs ) { cout < < allSongs; cout < < allSongs.getNumSongsLoaded ( ) + 1 < <

#include "helpers.h"
void promptSongSelection(Playlist allSongs){
cout << allSongs;
cout << allSongs.getNumSongsLoaded()+1<<". Exit Program" <> userModType;
}while(userModType<1|| userModType >4);
system("clear");
switch(userModType){
case 1:
exit = deleteSongFromPlaylist(playlist);
break;
case 2:
exit = addSongToPlaylist(playlist, all);
break;
case 3:
exit = false;
break;
case 4:
exit = true;
break;
}
if(playlist.getFirstSong()!= nullptr){
writePlaylistToFile(playlist);
}
return exit;
}
bool deletePlaylist(Playlist& playlist){
}
bool manageExistingPlaylists(const Playlist& all, Playlist& selectedPlaylist){
}
int getExistingPlaylists(string* existingPlaylists){
DIR *directoryPtr = opendir(".");
struct dirent *directoryEntry;
int numPlaylists =0;
if (directoryPtr){
while ((directoryEntry = readdir(directoryPtr))!= NULL){
string filename = directoryEntry->d_name;
string empty ="";
if(filename != "dbSmall.txt" && filename != "dbLarge.txt"){
for(int i = filename.size()/sizeof('c')-4; i< filename.size()/sizeof('c'); i++){
empty += filename[i];
}
if(empty ==".txt"){
string cleanedFilename ="";
for(int i =0; i< filename.size()/sizeof('a')-4; i++){
cleanedFilename += filename[i];
}
existingPlaylists[numPlaylists]= cleanedFilename;
numPlaylists++;
}
}
}
closedir(directoryPtr);
}
return numPlaylists;
}
ostream & operator <<(ostream &out, const Song &s){
}
ostream& operator <<(ostream &out, const Playlist &p){
} please complete the empty lines of code im confused and ive tried everything please explain it too

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!