View Single Post
04-15-2009, 09:06 PM
Join Date: Apr 2007
For that use, you would need to use a pre-increment rather than post-increment operator. With your original code, using a post-increment, the expression
(this is used for the assignment)
the value is incremented. With a pre-increment, the expression
which is used in the assignment to
P.S. xenon beat me to it, both posts say the same thing.
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe