|
|
|
|
| 2. Define a vector<int> with those ten elements. |
vector<int> v = {0,1,2,3,4,5,6,7,8,9};vector<int> v (begin(array),end(array));vector<int> v (array, array+10);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| IMO use normal array. |
|
|
|
|
| im having trouble initializing the second array with the first one using normal array |
| Why? A std::array has features that make this program easier to create and use, such as iterators. |