C++11 for Programmers stresses program clarity and concentrates on building well-engineered software.
Live-Code Approach. The book includes hundreds of “live-code” examples—each new concept is presented in the context of a complete working C++ program that is immediately followed by one or more actual executions showing the program’s inputs and outputs.
Syntax Shading. For readability, we syntax shade the code, similar to the way most integrated-development environments and code editors syntax color the code. Our syntax-shading conventions are:
comments appear like this
keywords appear like this
constants and literal values appear like this
all other code appears in black
Code Highlighting. We place light-gray rectangles around each program’s key code segments.
Using Fonts for Emphasis. We place the key terms and the index’s page reference for each defining occurrence in bold italic text for easier reference. We emphasize on-screen components in the bold Helvetica font (e.g., the File menu) and emphasize C++ program text in the Lucida
font (e.g., int x = 5
).
Web Access. All of the source-code examples can be downloaded from:
Objectives. The chapter opening quotations are followed by a list of chapter objectives.
Programming Tips. We include hundreds of programming tips to help you focus on important aspects of program development. These tips and practices represent the best we’ve gleaned from a combined eight decades of programming and teaching experience.
Good Programming Practice
The Good Programming Practices call attention to techniques that will help you produce programs that are clearer, more understandable and more maintainable.
Common Programming Error
Pointing out these Common Programming Errors reduces the likelihood that you’ll make them.
Error-Prevention Tip
These tips contain suggestions for exposing and removing bugs from your programs; many of the tips describe aspects of C++ that prevent bugs from getting into your programs.
These tips highlight opportunities for making your programs run faster or minimizing the amount of memory that they occupy.
Portability Tip
The Portability Tips help you write code that will run on a variety of platforms.
Software Engineering Observation
The Software Engineering Observations highlight architectural and design issues that affect the construction of software systems, especially large-scale systems.