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 this
for(int i = 0; i != 5; ++i, ++j) do_something(i,j);