Exercises
-
2.7 Discuss the meaning of each of the following objects:
std::cin
std::cout
-
2.8 Fill in the blanks in each of the following:
are used to document a program and improve its readability.
The object used to print information on the screen is .
A C++ statement that makes a decision is .
Most calculations are normally performed by statements.
The object inputs values from the keyboard.
-
2.9 Write a single C++ statement or line that accomplishes each of the following:
Print the message
"Enter two numbers"
.Assign the product of variables
b
andc
to variablea
.State that a program performs a payroll calculation (i.e., use text that helps to document a program).
Input three ...
Get C++ How to Program, 10/e 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.