Search:
Forum
Beginners
What does += do?
What does += do?
Feb 19, 2016 at 5:29am UTC
mancigol
(7)
I know that for example iA++ is iA = iA + 1, but what does += do?
Feb 19, 2016 at 5:38am UTC
whitenite1
(1785)
@mancigol
but what does += do?
That just means, iA = iA + whatever the variable value is.
Feb 19, 2016 at 6:10am UTC
TheIdeasMan
(6817)
Hi,
There are a number of them, in this link near the end there is a list of all the common operators:
http://en.cppreference.com/w/cpp/language/operator_assignment
Feb 19, 2016 at 6:50am UTC
guatemala007
(69)
x += y
is equivalent to
x = x + y
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs