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
The for(char c : myStr){...} syntax is new with C++11, so anything using an older version of C++ won't compile with that syntax.
for(char c : myStr){...}
C++11
C++
Previous to C++11, for_each is defined in the algorithm header.
for_each
algorithm