- 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.
- R語(yǔ)言數(shù)據(jù)分析從入門到精通
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Beginning Java Data Structures and Algorithms
- 微服務(wù)與事件驅(qū)動(dòng)架構(gòu)
- SQL Server 2016從入門到精通(視頻教學(xué)超值版)
- Learning Elixir
- Magento 2 Development Cookbook
- Implementing Cisco Networking Solutions
- C語(yǔ)言程序設(shè)計(jì)立體化案例教程
- 64位匯編語(yǔ)言的編程藝術(shù)
- MySQL數(shù)據(jù)庫(kù)管理與開(kāi)發(fā)(慕課版)
- Unity 5.x By Example
- 算法訓(xùn)練營(yíng):提高篇(全彩版)
- QGIS By Example
- Building Business Websites with Squarespace 7(Second Edition)