- Modern C++:Efficient and Scalable Application Development
- Richard Grimes Marius Bancila
- 203字
- 2021-06-10 18:27:49
Conventions Used
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The writer intended to type c = a + 8 / b + 1; and : they pressed comma instead of a /."
A block of code is set as follows:
inline auto mult(int lhs, int rhs) -> int
{
return lhs * rhs;
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
if (op == ',' || op == '.' || op < '+' || op > '/')
{
cout << endl << "operator not recognized" << endl;
usage();
return 1;
}
Any command-line input or output is written as follows:
C:\Beginning_C++Chapter_02\cl /EHsc calc.cpp
Bold: New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "The calling convention of the function determines whether the calling function or the called function has the responsibility to do this."