Continue skips the rest of the current iteration and jumps to the next one. In a for loop, the update runs, then the condition is checked again. You use continue to skip processing for specific values.
It is cleaner than wrapping the entire loop body in an if statement to exclude certain cases. Example: for (int i = 0; i < 5; i++) { if (i == 2) continue; cout << i; } prints 0, 1, 3, 4.
The value 2 is skipped because continue jumps past the cout.