Numbers are what make the computer’s world go ‘round, so let’s examine ways to get the computer to handle those numbers for us.
Variables
Variables might seem like the letters we use in algebra – y = mx + b, that sort of thing – but in C++ they’re just places to store values. Example 3-1 shows what it looks like when we create variables.