Flash Speed Questions

The solution time is much shorter than you think.

#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

womensstudies

Ehud Raghnall 55 Minutes ago

#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

Sagi Boris 1 Hours ago

#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

Selma Yafa 1 Hours ago

$ 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