Conventions Used in This Book
To help distinguish between different kinds of text, we've used a few typographic conventions. Italic type is used for important words or phrases used for the first time, such as structured programming. Monospace type can denote any of the following:
Names or values used in a program, such as x, starship, and 3.14
Language keywords, such as int and if else
Filenames, such as iostream
Functions, such as main() and puts()
C++ source code is presented as follows:
#include <iostream> using namespace std; int main() { cout << "What's up, Doc!\n"; return 0; }
Sample program runs use the same format, except user input appears in boldface:
Please enter your name:
Plato
Because this book is about object-oriented programming, ...
Get C++ Primer Plus, Fourth 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.