Jan 8, 2010 at 4:20pm Jan 8, 2010 at 4:20pm UTC
Can somebody give me a quick explanation on what they mean and how they work? Thanks!
PS I have looked around and cant find it!
Jan 8, 2010 at 4:36pm Jan 8, 2010 at 4:36pm UTC
Compound assignment operator. As blackcoder noted,
x += y
is the same as
x = x + y
Jan 8, 2010 at 10:03pm Jan 8, 2010 at 10:03pm UTC
You should have include
1 2 3 4 5 6
%=
<<=
>>=
&=
^=
|=
too.
EDIT damn
Last edited on Jan 8, 2010 at 10:03pm Jan 8, 2010 at 10:03pm UTC
Jan 8, 2010 at 10:05pm Jan 8, 2010 at 10:05pm UTC
Exactly right. You can find *anything* to do with C++'s standard and language parts here on this website's references.
(I presume that the last five are bitwise?)