Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now that you have been introduced to variables and how to assign data to them, you can begin to program. Through output and input statements, your program will allow a user to interact with a program. You’ll learn the basic elements of any C++ program: namely the main section, the return statement, and the input and output statements, cout and cin. Statements like cout and cin allow you to display and retrieve data within a program.