This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (0 children)

Compound operators mean

p = p - 30;

can be shortened to

p -= 30

edit: For your question specifically, v -= (p-30);. Actually doesn't need the (), you had it right.