14.04.2012, 14:58
Quote:
|
For is used when you know how many times you want to iterate, while is for the other case. For example; you don't usually know how many lines there are in a file or how many rows were returned by SQL query.
|
Код:
new
a = 0;
while (a < 'MAX_PLAYERS, FILE_LINES or ROWS')
{
// Code in the loop
a++;
}


