1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<double> a{3, 4, 5};
auto b = a;
for (int i=0; i < b.size(); i++) {
cout << i << endl;
}
&b[0]
b.begin()
for (std::vector<double>::iterator i; i < i != b.end(), i=i.next())
for (auto b_el : b) {
cout << b_el << endl;
}
{
using ulong = unsigned long;
ulong a = 45;
cout << a << endl;
}
return 0;
}
Back to week05