Compilation error with “for each” loop in C++ VS2010

后端 未结 6 873
无人及你
无人及你 2021-01-21 10:29

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

6条回答
  •  长发绾君心
    2021-01-21 10:40

    Foreach loop was introduced in the C++11 standard, the compilers at your school probably aren't up to date with the new standard.

提交回复
热议问题