< Previous | Contents | Next >
I use the built-in arithmetic operators for addition (the plus sign, þ), subtraction (the minus sign, -), and multiplication (an asterisk, *). The results depicted in Figure 1.4 are just what you’d expect.
Each arithmetic operator is part of an expression—something that evaluates to a single value. So, for example, the expression 7 þ 3 evaluates to 10, and that’s what gets sent to cout.