Chapter 1: C++ Introduction

In this chapter, the C++ 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. Some Standard Library and Qt classes are introduced.

1.1 Overview of C++

C++ was originally written as an extension of C by means of a series of preprocessor macros and known as C with Classes.1 After many years of evolution and refinement, it now extends C by adding several higher-level features such as strong typing, data abstraction, references, operator and function overloading, and considerable support for object-oriented programming.

C++ retains ...

Get Introduction to Design Patterns in C++ with Qt, 2nd 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.