#include #include /* * * 9.11 * * */ int main () { std::vector v1; // empty std::vector v2(v1); // empty std::vector v3 = v1; // empty std::vector v4(1); // 1 element, default initialized std::vector v5(10,1); // 10 elements, initialized to 1 std::vector v6{10,10,1}; // 3 elements, values 10, 10, 1 std::vector v7 = {10, 10, 1}; // 3 elements, values 10, 10, 1 std::vector v8(v5.begin(), v5.end()); // Same as v5 return 0; }