- Learning D
- Michael Parker
- 171字
- 2021-07-30 10:13:51
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 in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "An anonymous enum
declaration does not declare a new type."
A block of code is set as follows:
void healthBasedSwap(int[] squad1, int[] squad2) { import std.algorithm : sort, SwapStrategy; import std.range : chain; squad1.chain(squad2).sort!((a,b) => a > b, SwapStrategy.unstable)(); }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
void healthBasedSwap(int[] squad1, int[] squad2) { import std.algorithm : sort, SwapStrategy; import std.range : chain; squad1.chain(squad2).sort!((a,b) => a > b, SwapStrategy.unstable)(); }
Any command-line input or output is written as follows:
dmd hello.d
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
推薦閱讀
- 微信公眾平臺與小程序開發(fā):從零搭建整套系統(tǒng)
- Boost C++ Application Development Cookbook(Second Edition)
- 編程珠璣(續(xù))
- The DevOps 2.4 Toolkit
- MySQL數(shù)據(jù)庫基礎實例教程(微課版)
- 大學計算機基礎(第2版)(微課版)
- 精通Python設計模式(第2版)
- 高級語言程序設計(C語言版):基于計算思維能力培養(yǎng)
- Mastering openFrameworks:Creative Coding Demystified
- Java圖像處理:基于OpenCV與JVM
- Hadoop大數(shù)據(jù)分析技術
- 跟戴銘學iOS編程:理順核心知識點
- Android Studio開發(fā)實戰(zhàn):從零基礎到App上線 (移動開發(fā)叢書)
- Modular Programming with JavaScript
- JavaScript Unit Testing