- Learning Boost C++ Libraries
- Arindam Mukherjee
- 222字
- 2021-07-16 20:49:00
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.
- Git Version Control Cookbook
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- C++程序設計基礎教程
- 網店設計看這本就夠了
- 深入理解Elasticsearch(原書第3版)
- 寫給程序員的Python教程
- Spring 5 Design Patterns
- Serverless Web Applications with React and Firebase
- 從Power BI到Analysis Services:企業級數據分析實戰
- C語言程序設計實踐
- XML程序設計(第二版)
- 少兒編程輕松學(全2冊)
- Game Programming using Qt 5 Beginner's Guide
- Implementing Splunk(Second Edition)
- C語言進階:重點、難點與疑點解析