Question About a+=b In C++
Why does "a+=b" mean "a=a+b" and not "a+b=b"? What I had in mind was kind of like the distributive property in maths except with operations instead of numbers but I don't think that works. Or is it like distributive property where a+b is combined with a=b, resulting in a+b=b and since it's the first version of b because of a=b, it's a+b=a? So basically is there logic to it or is it just that way?