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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -