Usually a for loop will look something like this for (int i = 0; i < 10; ++i)
for (int i = 0; i < 10; ++i)
The first thing is something that will run once when the loop starts. It is often used to initialize some variable, in this case i.
for (int i = 0; i < 10; ++i)
The middle part is the condition. Before each iteration it will check the condition and if it is false the loop will stop.
for (int i = 0; i < 10; ++i)
The last thing is something that will run after each iteration.
You don't need to have any of these. If the condition is missing the loop will run infinitely. To make it stop you would have to use break, return or something like that.