Skip to content

Instantly share code, notes, and snippets.

@gallirohik
Last active August 8, 2018 09:42
Show Gist options
  • Select an option

  • Save gallirohik/76e0ff748a2745f09e56a09266611cb5 to your computer and use it in GitHub Desktop.

Select an option

Save gallirohik/76e0ff748a2745f09e56a09266611cb5 to your computer and use it in GitHub Desktop.
Myproject
#include<iostream>
#include<vector>
#include "AllSongs.h";
#include "Song.h";
using namespace std;
void AllSongs::displaySongs()
{
for(int i=0;i<count;i++)
{
Song s=this->Songs[i];
cout<<s.getName()<<endl;
}
}
int AllSongs::AddSong(Song newSong)
{
this->Songs.push_back(newSong);
count++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment