- 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.
推薦閱讀
- C語言程序設計案例教程(第2版)
- Silverlight魔幻銀燈
- Java EE 7 Performance Tuning and Optimization
- Visual C#.NET程序設計
- Building Wireless Sensor Networks Using Arduino
- Creating Data Stories with Tableau Public
- 響應式Web設計:HTML5和CSS3實戰(第2版)
- 深入淺出Go語言編程
- Python計算機視覺和自然語言處理
- OpenCV 3.0 Computer Vision with Java
- Instant Pygame for Python Game Development How-to
- Unity虛擬現實開發圣典
- Jenkins 2.x實踐指南
- JSP大學實用教程
- Implementing NetScaler VPX?(Second Edition)