Lesson 3. Using Variables, Declaring Constants

Variables are tools that help the programmer temporarily store data for a finite amount of time. Constants are tools that help the programmer define artifacts that are not allowed to change or make changes.

In this lesson, you find out

Image How to declare and define variables and constants

Image How to assign values to variables and manipulate those values

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

How ...

Get Sams Teach Yourself C++ in One Hour a Day, Eighth 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.