The form for for-loops in C++ looks like this:
for(initialisation; condition; incrementation)
{
//code
}
So you could do something like
for(unsigned int i = 0; i < 10; ++i)
{
std::cout << "i = " << i << std::endl;
}
The principle in your code is the same; there is an initialisation, a condition, and not really an "incrementation", but something that happens every iteration of the loop(I guess it goes to the previous book).