Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - for http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   for

     for(exp1; exp2; exp3)
         statement;

     . exp1 is executed ONCE only before the loop starts.

     . exp2 is evaluated each time around the loop and the loop
       only continues if it is true.

     . exp3 is executed after the statement each time around the loop.

     You could write the above like this:

     exp1;
     while(exp2)
     {
        statement;
        exp3;
     }


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson