Of course, in the example above the loop would never execute because of the simple fact that i starts out equal to argc (1) in the case outlined by penetrator.

argc is the number of command-line arguments,
including the full name and path of the executable (ie, argv[0] is always the name of the application). argv[] is an array of null-terminated string (C-style) which are the various arguments passed. Since argv[] is an array of strings, you''ll need to take care to convert numeric parameters properly.
[ GDNet Start Here | GDNet FAQ | MS RTFM | STL | Google ]
Thanks to Kylotan for the idea!