1. The Basics
The first thing we do, let’skill all the language lawyers.
– Henry VI, Part II
• Programs
• Types, Variables, and Arithmetic
• Pointers, Arrays, and References
• Tests
• Advice
1.1. Introduction
This chapter informally presents the notation of C++, C++’s model of memory and computation, and the basic mechanisms for organizing code into a program. These are the language facilities supporting the styles most often seen in C and sometimes called procedural programming.
1.2. Programs
C++ is a compiled language. For a program to run, its source text has to be processed by a compiler, producing object files, which are combined by a linker yielding an executable ...
Get A Tour of C++ 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.