1#include <iostream>
2#include <vector>
3
4int main()
5{
6 std::vector<int> myVector = {1, 2, 3, 4, 5, 6};
7
8 for(int i = 0; i < myVector.size(); i++)
9 {
10 std::cout << myVector[i] << std::endl;
11
12 //***** alternate method *******
13 //std::cout << myVector.at(i) << std::endl;
14 }
15}