Diferente pentru blog/cpp11 intre reviziile #10 si #9
Nu exista diferente intre titluri.
Diferente intre continut:
If you want to modify the elements in the list, you need to get a reference to the element like this: == code(cpp) |
doublearray[5] = {1.5, 2.7, 3.9}; for (auto&x: array) {
int array[5] = {1, 2, 3, 4, 5};
for (int &x: array) {
x *= 2; } ==
