What is the output of program segment:

vecList: push_back(3);
vecList: push_back(5);
vecList: push_back(7);
vceIt = vceList.begin( );
++vecIt;
vecList.erase(vecIt);
vecList.push_back(9);
copy(vecList.begin( ), vecList( ).end( ), screen);
cout << end1;

Why dont you compile it and find out?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.