I would like to increment two variables in a for-loop condition instead of one.
for
So something like:
for (int i = 0; i != 5; ++i and ++j)
Try not to do it!
From http://www.research.att.com/~bs/JSF-AV-rules.pdf:
AV Rule 199 The increment expression in a for loop will perform no action other than to change a single loop parameter to the next value for the loop. Rationale: Readability.
AV Rule 199 The increment expression in a for loop will perform no action other than to change a single loop parameter to the next value for the loop.
Rationale: Readability.