Hour 3. Variables and Constants

Programs need a way to store the data they use. Variables and constants offer various ways to work with numbers and other values.

In this hour you learn:

  • How to declare and define variables and constants

  • How to assign values to variables and manipulate those values

  • How to write the value of a variable to the screen

Get Sams Teach Yourself C++ in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.