Object Oriented ProgrammingObject-Oriented Programming Key Ideas Class Inheritance Polymorphism Early and Late Binding Virtuality override final Template method Destructor Interfaces Liskov substitution principle return type Duck Typing Traps Virtual in con- /destructor Slicing ShadowingObject-Oriented Programming Key Ideas Class Inheritance Polymorphism Early and Late Binding Virtuality override final outside world. Information hiding Separation from interface and implementationObject-Oriented Programming Key Ideas Class Inheritance Polymorphism Early and Late Binding Virtuality override final0 码力 | 38 页 | 752.99 KB | 6 月前3
Hello 算法 1.2.0 简体中文 Swift 版Hello 算法 Swift 语言版 作者:靳宇栋(@krahets) 代码审阅:@nuomi1 Release 1.2.0 2024‑12‑06 序 两年前,我在力扣上分享了“剑指 Offer”系列题解,受到了许多读者的鼓励和支持。在与读者交流期间,我 最常被问的一个问题是“如何入门算法”。逐渐地,我对这个问题产生了浓厚的兴趣。 两眼一抹黑地刷题似乎是最受欢迎的方法,简单、直接且有 记录。需要注意的是,Python 中 range(a, b) 对应的区间是“左闭右开”的,对应的遍历范围为 ?, ? + 1, … , ? − 1 : // === File: iteration.swift === /* for 循环 */ func forLoop(n: Int) -> Int { var res = 0 // 循环求和 1, 2, ..., n-1, n for i in 循环中,程序每轮都会先检查条件,如果条 件为真,则继续执行,否则就结束循环。 下面我们用 while 循环来实现求和 1 + 2 + ⋯ + ? : // === File: iteration.swift === /* while 循环 */ func whileLoop(n: Int) -> Int { var res = 0 var i = 1 // 初始化条件变量 // 循环求和 10 码力 | 379 页 | 18.48 MB | 10 月前3
Hello 算法 1.2.0 繁体中文 Swift 版Hello 演算法 Swift 語言版 作者:靳宇棟(@krahets) 程式碼審閱:@nuomi1 Release 1.2.0 2024‑12‑06 序 兩年前,我在力扣上分享了“劍指 Offer”系列題解,受到了許多讀者的鼓勵與支持。在與讀者交流期間,我 最常被問到的一個問題是“如何入門演算法”。漸漸地,我對這個問題產生了濃厚的興趣。 兩眼一抹黑地刷題似乎是最受歡迎的方法,簡單、 記錄。需要注意的是,Python 中 range(a, b) 對應的區間是“左閉右開”的,對應的走訪範圍為 ?, ? + 1, … , ? − 1 : // === File: iteration.swift === /* for 迴圈 */ func forLoop(n: Int) -> Int { var res = 0 // 迴圈求和 1, 2, ..., n-1, n for i in 迴圈中,程式每輪都會先檢查條件,如果條 件為真,則繼續執行,否則就結束迴圈。 下面我們用 while 迴圈來實現求和 1 + 2 + ⋯ + ? : // === File: iteration.swift === /* while 迴圈 */ func whileLoop(n: Int) -> Int { var res = 0 var i = 1 // 初始化條件變數 // 迴圈求和 10 码力 | 379 页 | 18.79 MB | 10 月前3
Back to Basics: Generic Programming1 David Olsen – Generic Programming CppCon 20242 David Olsen – Generic Programming CppCon 2024 Back to Basics: Generic Programming David Olsen, Compiler Engineer, NVIDIA CppCon, 18 Sep 20243 David Olsen – Generic Programming CppCon 2024 Generic Programming4 David Olsen – Generic Programming CppCon 2024 Generic Programming5 David Olsen – Generic Programming CppCon 2024 Generic Programming Same code code works on different, unrelated types6 David Olsen – Generic Programming CppCon 2024 Generic Programming Same code works on different, unrelated types T sum(C container) { T result = 0; for (T value0 码力 | 175 页 | 1.16 MB | 6 月前3
Branchless Programming in C++Branchless Programming in C++ Fedor G Pikus Chief ScientistBranchless Computing 3 PLAN ● Efficiency and performance ● Understanding the hardware and using it efficiently – Computing resources of determines performance? ● Optimal algorithm: – get the result with minimal work ● Efficient use of language: – do not do any unnecessary work ● Efficient use of hardware – use all available resources –0 码力 | 61 页 | 9.08 MB | 6 月前3
Back to Basics: Object-Oriented ProgrammingAndreas Fertig Write unique code! Back to Basics Object-Oriented Programming Presentation Material CppCon, Aurora CO, 2024-09-20© 2024 Andreas Fertig AndreasFertig.com All rights reserved All programs https://AndreasFertig.com post@AndreasFertig.com 5A class ■ C++ adds classes for object-oriented programming. ■ The constructors B are called when the object is cre- ated. ■ Data fields of classes should0 码力 | 20 页 | 1.04 MB | 6 月前3
Back To Basics: Functional Programming in C++What is functional programming? Jonathan Müller — @foonathan Back to Basics: Functional Programming in C++ CppCon 2024-09-19 1Imperative Programming Definition Specify instructions that manipulate state achieve a goal. Jonathan Müller — @foonathan Back to Basics: Functional Programming in C++ CppCon 2024-09-19 2Imperative Programming Definition Specify instructions that manipulate state in order to achieve goal. C and C++ Jonathan Müller — @foonathan Back to Basics: Functional Programming in C++ CppCon 2024-09-19 2Imperative Programming Definition Specify instructions that manipulate state in order to achieve0 码力 | 178 页 | 918.67 KB | 6 月前3
Template-Less Meta-Programming0 码力 | 130 页 | 5.79 MB | 6 月前3
Oracle VM VirtualBox 4.1.40 Programming Guide and ReferenceOracle VM VirtualBox R ⃝ Programming Guide and Reference Version 4.1.40 c⃝ 2004-2015 Oracle Corporation http://www.virtualbox.org Contents 1 Introduction 16 1.1 Modularity: the building blocks of VirtualBox web service for PHP . . . . . . . . . . . . . . . . . 25 2.2 Using the raw web service with any language . . . . . . . . . . . . . . . . . . . 25 2.2.1 Raw web service example for Java with Axis . . . 25 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . 26 2.2.3 Programming considerations for the raw web service . . . . . . . . . . 27 2.3 Using COM/XPCOM directly . .0 码力 | 306 页 | 1.92 MB | 6 月前3
Oracle VM VirtualBox 5.2.40 Programming Guide and ReferenceOracle VM VirtualBox R ⃝ Programming Guide and Reference Version 5.2.40 c⃝ 2004-2020 Oracle Corporation http://www.virtualbox.org Contents 1 Introduction 21 1.1 Modularity: the building blocks of VirtualBox web service for PHP . . . . . . . . . . . . . . . . . 30 2.2 Using the raw web service with any language . . . . . . . . . . . . . . . . . . . 30 2.2.1 Raw web service example for Java with Axis . . . 30 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . 31 2.2.3 Programming considerations for the raw web service . . . . . . . . . . 32 2.3 Using COM/XPCOM directly . .0 码力 | 422 页 | 2.45 MB | 6 月前3
共 365 条
- 1
- 2
- 3
- 4
- 5
- 6
- 37













