I was working on a little C++ project at home, which I brought into school to show my teacher. At home I have Visual Studio 2012, whereas the school computers have Visual Studio 2010. In my code, from home, I had a for loop, like so, which compiled:
for(char c : myStr){...}
However, when I tried it on my school's computers, it did not compile, and I ended up having to do this instead:
for each(char c in myStr){...}
Why is this the case?