Table of Contents
Copyright
Preface
Chapter 1. “D”iving In
Section 1.1. Numbers and Expressions
Section 1.2. Statements
Section 1.3. Function Basics
Section 1.4. Arrays and Associative Arrays
Section 1.5. Basic Data Structures
Section 1.6. Interfaces and Classes
Section 1.7. Values vs. References
Section 1.8. Templates
Section 1.9. Closing Notes
Chapter 2. Basic Types. Expressions
Section 2.1. Symbols
Section 2.2. Literals
Section 2.3. Implicit Conversions
Section 2.4. Operators
Section 2.5. Summary
Chapter 3. Statements
Section 3.1. The Empty Statement
Section 3.2. The Expression Statement
Section 3.3. The Compound Statement
Section 3.4. The if Statement
Section 3.5. The static if Statement
Section 3.6. The switch Statement
Section 3.7. The final switch Statement
Section 3.8. Looping Statements
Section 3.9. The goto Statement
Section 3.10. The with statement
Section 3.11. The return statement
Section 3.12. The throw and try statements
Section 3.13. The scope statement
Section 3.14. The synchronized statement
Section 3.15. The asm statement
Section 3.16. Summary and Quick Reference
Chapter 4. Arrays, Associative Arrays, and Strings
Section 4.1. Dynamic Arrays
Section 4.2. Fixed-Size Arrays
Section 4.3. Multidimensional Arrays
Section 4.4. Associative Arrays
Section 4.5. Strings
Section 4.6. Summary
Chapter 5. Data and Functions. Functional Style
Section 5.1. Writing and unittesting a Simple Function
Section 5.2. Pass by Value vs. Reference
Section 5.3. Type Parameters
Section 5.4. Signature Constraints
Section 5.5. Overloading
Section 5.6. Higher-Order Functions. Function Literals
Section 5.7. Nested Functions
Section 5.8. Closures
Section 5.9. Beyond Arrays. Ranges. Pseudo-Members
Section 5.10. Variadic Functions
Section 5.11. Function Attributes
Section 5.12. Compile-Time Evaluation
Chapter 6. Classes. Object-Oriented Style
Section 6.1. Classes
Section 6.2. Object Names Are References
Section 6.3. It’s an Object’s Life
Section 6.4. Methods and Inheritance
Section 6.5. Class-Level Encapsulation with static Members
Section 6.6. Curbing Extensibility with final Methods
Section 6.7. Encapsulation
Section 6.8. One Root to Rule them All
Section 6.9. Interfaces
Section 6.10. Abstract Classes
Section 6.11. Nested Classes
Section 6.12. Multiple Inheritance
Section 6.13. Multiple Subtyping
Section 6.14. Parameterized Classes and Interfaces
Chapter 7. Other User-Defined Types
Section 7.1. structs
Section 7.2. unions
Section 7.3. Enumerated Values
Section 7.4. alias
Section 7.5. Parameterized Scopes with template
Chapter 8. Error Handling
Section 8.1. throwing and catching
Section 8.2. Types
Section 8.3. finally clauses
Section 8.4. nothrow Functions
Section 8.5. Collateral Exceptions
Section 8.6. Stack Unwinding and Exception-Safe Code
Section 8.7. Uncaught Exceptions
Chapter 9. Contract Programming
Section 9.1. Contracts
Section 9.2. Assertions
Section 9.3. Preconditions
Section 9.4. Postconditions
Section 9.5. Contracts: Not For Scrubbing Input
Section 9.6. Invariants
Section 9.7. Skipping Contracts. Release Builds
Section 9.8. Contracts and Inheritance
Section 9.9. Contracts in Interfaces
Chapter 10. Scaling Up
Section 10.1. Packages and Modules
Section 10.2. Safety
Section 10.3. Module Constructors and Destructors
Chapter 11. Operator Overloading
Bibliography
分享到:
相关推荐
printf("%d\t%d\n", fahr, celsius); fahr = fahr + step; } ``` - **注释**: - 单行注释:`//`后跟注释内容。 - 多行注释:`/*`和`*/`之间包含注释内容。 - 示例: ```c /*fahr=0,20,...,300时,直接打印...
《The C Programming Language》这本书是C语言学习者的经典教材,对于初学者来说,它提供了深入浅出的讲解。本文将着重讨论第一章中提到的三个重要知识点。 首先,我们要理解循环终止的机制。在C语言中,常见的循环...
《C程序设计语言》这本书由B.W.Kernighan与D.M.Ritchie共同编写,是C语言领域内的经典著作之一。此书的第二版中文版不仅为学习者提供了全面而深入的学习资源,而且它本身就是C语言的标准参考之一。下面我们将从几个...
如第1章的“1.2 Variables and Arithmetic Expressions”讲解了变量和算术表达式的使用,“1.3 The for statement”阐述了for循环的使用方法。 2. 数据类型和运算符:详细介绍了C语言中的数据类型、类型转换、声明...
### D编程语言知识点详解 #### 一、简介与背景 **D编程语言**是一种现代的、多范式的系统级编程语言,由Walter Bright在1999年构思,并在其后的发展过程中得到了社区的广泛支持与贡献。D语言旨在继承C/C++的优点,...
《The C Programming Language》这本书由Brian W. Kernighan和Dennis M. Ritchie共同编写,是C语言领域内的一本经典教材。书中不仅详细介绍了C语言的基础语法,还提供了大量的习题和示例代码,帮助读者深入理解并...
《 C程序设计语言》 K&R示例代码,练习代码,以及重要笔记标注 ... Ritchie的书“ The C Programming Language”(第2版)中的练习的源代码和我的解决方案,也称为K&R。 该存储库为中文版《 C程序设计语言》
英文版,88年的版本,学C的经典参考书,号称是“圣经”,不过现在“圣经”太多了~~
Date(int day, int month) : d(day), m(month), y(2023) { } // 默认当前年份 Date(int day) : d(day), m(1), y(2023) { } // 默认1月当前年份 }; ``` #### 示例代码解析 下面的示例代码展示了如何定义一个名为`...
### D程序设计语言核心知识点概览 #### 一、D语言简介 D语言是一种新兴的系统编程语言,它旨在结合C语言的强大性能和脚本语言如Python或Ruby的高效开发特性。这种语言的设计目标非常明确:既要保持底层系统的高效...
You are visitor as of October 17, 1996. The Art of Assembly Language Programming <br>Forward Why Would Anyone Learn This Stuff? 1 What's Wrong With Assembly Language 2 What's Right With ...
The exploration style places this book between a tutorial and a reference, with a focus on the concepts and practices underlying programming language design and usage. Instructors looking for ...