Chapter 1. C++ Introduction

In this chapter the language is introduced. Basic concepts such as keywords, literals, identifiers, declarations, native types, and type conversions are defined. Some history and evolution are discussed, along with the relationship between C++ and the C language.

1.1

Overview of C++

6

1.2

A Brief History of C++

6

1.3

Setup: Open-Source Platforms

7

1.4

Setup: Win32

12

1.5

C++ First Example

12

1.6

Input and Output

16

1.7

Identifiers, Types, and Literals

19

1.8

C++ Simple Types

22

1.9

C++ Standard Library Strings

30

1.10

Streams

31

1.11

The Keyword const

34

1.12

Pointers and Memory Access

36

1.13

const* and *const

40

1.14

Reference Variables

43

Overview of C++

C++ was originally an extension to C, also known as “C with Objects.” It enhances C by adding several higher-level ...

Get An Introduction to Design Patterns in C++ with Qt 4 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.