Relative Content

Tag Archive for c++

Modify array or collection with foreach

I noticed something interesting. I can change the elements of the array or assign a new array reference in foreach blocks, but I cannot do the same operations with collections, it gives an error. Why??
The following example gives an error