Part I. The Basics

CONTENTS

Chapter 2 Variables and Basic Types

Chapter 3 Library Types

Chapter 4 Arrays and Pointers

Chapter 5 Expressions

Chapter 6 Statements

Chapter 7 Functions

Chapter 8 The IO Library

Programming languages have distinctive features that determine the kinds of applications for which they are well suited. They also share many fundamental attributes. Essentially all languages provide:

• Built-in data types such as integers, characters, and so forth

• Expressions and statements to manipulate values of these types

• Variables, which let us give names to the objects we use

• Control structures, such as if or while, that allow us to conditionally execute or repeat a set of actions

• Functions that let us abstract actions into ...

Get C++ Primer, Fourth 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.