From MSDN:
Quote:
for ( init-expression ; cond-expression ; loop-expression )
statement
Where:
"init-expression" is the initial expression to start the loop, e.g. int counter = x would be if you wanted to create an integer variable initialized to x.
"cond-expression" is the conditional expression to determine if the loop should repeat, e.g. counter < y would be if you wanted counter to be less than y while the loop runs.
"loop-expression" is what gets executed each time the loop code runs,e.g. counter=counter+1 or counter++ would be a couple of ways to increment the counter by 1 each run.
"statement" is a block that runs in the loop