Question

Question 1

1.1 How can software engineering principles be applied to design and implement effective C++

classes?

1.2 What is the output of the following program segment?

vector vecList = {27, 32, 45, 6, 18, 5, 92,

10, 32, 29);

screen (cout, " ");

ostream_iterator

copy (vecList.begin(), vecList.end(), screen);

cout << endl;

copy (vecList.begin() + 5, vecList.end(),

vecList.begin()

+ 1);

copy (vecList.begin(), vecList.end(), screen);

cout << endl;

(10)

(10)

Question image 1