Skip to content

Glossary: C++ Basics

Compound assignment

Also written: +=, -=, *=

Short forms that change a variable using its own value: `cups += 5` means `cups = cups + 5`, and `-=` and `*=` work alike.

Where the book teaches it

Related terms

AssignmentIncrement and decrement