官术网_书友最值得收藏!

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words and C++ language keywords in text are shown as follows: "We pass the number of bytes returned by async_receive to the handler."

Folder names, filenames, file extensions, pathnames, include file names in text are shown as follows: "The header file boost/asio.hpp includes most of the types and functions required for using the Asio library".

A block of code is set as follows:

46 int main() {
47   asio::io_service service;
48   UDPAsyncServer server(service, 55000);
49
50   boost::thread_group pool;
51 pool.create_thread([&service] { service.run(); });
52 pool.create_thread([&service] { service.run(); });
53   pool.join_all();
54 }

Except in smaller code snippets, each line of code is numbered for ease of reference from within the text. Important lines of code in a block are highlighted as shown above, and referred to from text using line numbers in parentheses (lines 51-52).

Any command-line input is written as follows:

$ g++ -g listing1.cpp -o listing1 -lboost_system -lboost_coroutine -lboost_date_time -std=c++11

Important new programming terms are shown in bold. Conceptual terms are shown in italics.

Note

Important additional details about a topic appear like this, as in a sidebar.

Tip

Important notes, tips, and tricks appear like this.

主站蜘蛛池模板: 库尔勒市| 平安县| 团风县| 景谷| 漾濞| 山阳县| 汨罗市| 廊坊市| 富源县| 呼和浩特市| 平陆县| 武功县| 汤原县| 绥阳县| 通化县| 娄底市| 商都县| 山西省| 微山县| 宜宾县| 宝丰县| 蓬溪县| 略阳县| 五家渠市| 齐齐哈尔市| 清丰县| 玉树县| 文成县| 潜江市| 靖西县| 托里县| 云林县| 大英县| 定陶县| 安阳市| 右玉县| 冀州市| 江城| 榆中县| 辰溪县| 江北区|