subject
Engineering, 05.05.2020 12:52 kulfif8441

#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; }

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:20
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
Answers: 2
question
Engineering, 04.07.2019 19:20
Amass-spring-viscous damper system of mass 3 kg has a frequency of 100 rad/s and is critically damped. its initial conditions are x(0)-3 mm and (0)-2.3 m/s. does the system overshoot its equilibrium position? prove your answer
Answers: 1
You know the right answer?
#include #include #include using namespace std; class Song { public: void SetNameAndDuration(string...
Questions
question
Mathematics, 25.08.2021 14:30
question
Mathematics, 25.08.2021 14:30
question
English, 25.08.2021 14:30
question
Mathematics, 25.08.2021 14:30
question
Mathematics, 25.08.2021 14:30
question
Mathematics, 25.08.2021 14:30
question
Mathematics, 25.08.2021 14:40
question
Mathematics, 25.08.2021 14:40
Questions on the website: 13722367