There is a sample program in my C++ book that uses the += operator, and doesn't explain how it works:

gold += silver / SILVERPERGOLD;

What exactly does this mean?

shorthand for
gold = gold + silver

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.