Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “With that in mind, let’s take a look at our Adapter class, Humanoid
.”
A block of code is set as follows:
class Humanoid: private Person // Humanoid is abstract { protected: void SetTitle(const string &t) { ModifyTitle(t); } public: Humanoid() = default; Humanoid(const string &, const string &, const string &, const string &); // class definition continues
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
const string &GetSecondaryName() const { return GetFirstName(); } const string &GetPrimaryName() const { return GetLastName(); }
Any command-line input or output is written as follows:
Orkan Mork McConnell Nanu nanu Romulan Donatra Jarok jolan'tru Earthling Eve Xu Hello Earthling Eve Xu Bonjour
Tips or important notes
Appear like this.