#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 << endl; } string getname() const { return name; } int getduration() const { return duration; } private: string name; int duration; }; int main() { vector songplaylist; song currsong; string currname; int currduration; unsigned int i; cin >> currname; while (currname != "quit") { /* your code goes here */ } for (i = 0; i < songplaylist. size(); ++i) { currsong = songplaylist. at(i); currsong. printsong(); } return 0; }
Get the answer
Category: science |
Author: Hedda Galya
Related Questions
#include ad libs are activities that have a person provide various wor

#include using namespace std; void printfactorial(int factcounter, int

Category
womensstudies
#include using namespace std; void swap1(int n1, int n2) { int temp = n1; n1 = n2; n2 = temp; } void swap2(int& n1, int& n2) { int temp = n1;
ecology
#l2 letter to the editor television and motion pictures have been distorting our view of the legal process for years . generations of children have gr
womensstudies
$ which word in the sentence below is a possessive noun?iei found some old photos in the boxes in my aunt's attic.?photosbboxescaunt'sabdattic