#include #include #include #include #include "obj.h" using namespace std; int main() { const int a[] = {10, 20, 30}; const size_t n = sizeof a / sizeof a[0]; list li(a, a + n); vector v1(a, a + n); //born containing 10, 20, 30 vector v2(li.begin(), li.end()); //born containing 10, 20, 30 vector v3(v2.begin() + 1, v2.end()); //born containing 20, 30 return EXIT_SUCCESS; }