Share
Explore BrainMass

Data Structures C++

13. Suppose that vecList is a vector container and vecList = {12, 16, 8, 23, 40, 6, 18, 9, 75} Show vecList after the following statement executes:

copy(vecList.begin() + 2, vecList.end(), vecList.begin());

14. Suppose that vecList is a vector container and vecList = {12, 16, 8, 23, 40, 6, 18, 9, 75} Show vecList after the following statement executes:

copy(vecList.rbegin() + 3, vecList.rend(), vecList.rbegin());

$2.19