In my the cs106b book we use the expression \"foreach\" to go through a list of words in a Map. I implemented the code and banged my head against the wall facing mysterious erro
The code in your example looks like a mix of C# and C++ syntax. The foreach construct itself is C# syntax, C++/CLI (supported by VC++) has a for each construct as does C++0x (supported by GCC 4.6), but neither followw that syntax.