Objectives
In this chapter you’ll:
• Write simple C++ programs.
• Write input and output statements.
• Use fundamental types.
• Use arithmetic operators.
• Learn the precedence of arithmetic operators.
• Write decision-making statements.
Outline
2.1 Introduction
2.2 First Program in C++: Printing a Line of Text
2.3 Modifying Our First C++ Program
2.4 Another C++ Program: Adding Integers
2.5 Arithmetic
2.6 Decision Making: Equality and Relational Operators
2.7 Wrap-Up