O'Reilly logo

An Introduction to Design Patterns in C++ with Qt 4 by Paul Ezust, Alan Ezust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required