c# - How to make ++ operator increments stack with shorter code? -
i wanted figure out way make floating points move , change faster typical x++ decided add more of increments same while loop stack
while (true) { x++; x++; x++; x++; } the functionality works how do shorter code?
you can replace with:
while (...) { x += 4; } this represents x = x + 4
you can subtraction, multiplication, , division, respectively -=, *=, , /=. read more here
Comments
Post a Comment