I'm using some code, which uses variables declared in a loop after the loop. For examplefor (int i = 0; i != 10; i++){   // do stuff}int x = i;I get the i undefined error. Is there a compiler switch to change this (in VC++ 2015)?
Is there a compiler switch changing the scope of variables in loops?
c++;visual studio 2012