[...]
Hi Alex,
Nice job.
My 0.5c worth, in C++ it is important to pre-increment unless you really need the previous value since post increment could create a wasted expensive copy of an object. Although an int isn't expensive, it is probably better to make it ++i in the for loop so it agrees with the usual idiom.
Cheers Lex