NOTE: I know I can move the declaration outside the loop.
I want to declare a couple of variables in a for loop:
for ( int x = 0, int y = 0 ; ; )
{
}
,but this doesn't work since I can't specify a type after the comma ,. In this case, removing the second int or declaring y outside the loop would fix the problem, but what if I want to declare both variables inside the loop and also have different types?
Can I have something like:
for ( int x = 0, float y = 0 ; ; )
{
}
?