Mai intai trebuie sa te autentifici.
Diferente pentru blog/cpp11 intre reviziile #47 si #46
Nu exista diferente intre titluri.
Diferente intre continut:
h3. 2. range-based for loops
In $C++11$, you canwriteless code to iterate over everyelement in a listofelements:
In $C++11$, you can iterate over each element in a list with less code:
== code(cpp) |
int array[5] = {1, 2, 3, 4, 5};
} ==
If you want to modify the elements in the list, you need to get a reference to the current element:
If you want to modify the elements in the list, you need to get a reference to the current element like this:
== code(cpp) |
double array[5] = {1.5, 2.7, 3.9};
