Good night, everyone..
Just wondering how do I exclude a number from command for 'for'?
For an example:
for (int i = 0; i < 9; ++i) - Except for i = 5?
What are you trying to "make work"? Your code there seems to be a different issue than the original post.
Either do what squished18 said, and have a test for if (i == 5) {/*do nothing or some special case*/}, or do something like
1 2 3 4 5 6 7 8
for (int i = 0; i < 5; i++)
{
//do stuff
}
for (int i = 6; i < 9; i++)
{
//do stuff, i was never 5
}
Show in code the if-statement you tried to implement.