
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
There are three styles for code. Code words in text are shown as follows: "The predefined constant NULL
(defined in the header file cstdlib
) holds the pointer equivalence of the zero value"
A block of code will be set as follows:
int i = 123; double x = 1.23; int j = (int) x; double y = (double) i;
When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
ON_COMMAND(ID_APP_EXIT, OnAppExit)
END_MESSAGE_MAP()
New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "Let us start by selecting New Project in the File menu and choosing Visual C++ Projects and MFC Application with the name Ring and a suitable place on the hard drive".