Thursday, 29 August 2013

Is there a shortcut for incrementing a value and setting one at the same time?

Is there a shortcut for incrementing a value and setting one at the same
time?

Not an easy question to word.
Basically, is there a way to combine these two statements into one:
value++;
Value2 = Value;
So basically:
Value 2 = value++
But, where it increments value as well.
Can it be done?

No comments:

Post a Comment