if(int i; i < 2; i++)
Local variables are not initialized by default. You MUST supply an initial value. Zero is generally a good choice.
Also, try "for", not "if" ![]()
if(int i; i < 2; i++)
Local variables are not initialized by default. You MUST supply an initial value. Zero is generally a good choice.
Also, try "for", not "if" ![]()