Chapter 2. Introduction to C++ Programming

Images

Objectives

In this chapter, you’ll:

Write simple C++ applications.

Use input and output statements.

Use fundamental data types.

Use arithmetic operators.

Understand the precedence of arithmetic operators.

Write decision-making statements.

Use relational and equality operators.

Begin appreciating the “objects natural” learning approach by creating and using objects of the C++ standard library’s string class before creating your own custom classes.

Get C++20 for Programmers, 3rd 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.