Some Things C++ Does Right
enough • C++ is a language where some defaults are wrong 6You might have heard… • C++ is not memory-safe enough • C++ is not type-safe enough • C++ is a language where some all defaults are wrong 7You heard… • C++ is not memory-safe enough • C++ is not type-safe enough • C++ is a language where some all defaults are wrong • C++ is too expert-friendly 8You might have heard… • There's often a grain enjoy it all! 13You might have heard… • This talk is about some of the things C++ does right 14You might have heard… • This talk is about some of the things C++ does right 15 Me, promoting my CppCon0 码力 | 228 页 | 2.47 MB | 5 月前3Rust算法教程 The Algos (algorithms)
+ b)`. pub fn radix_sort(arr: &mut [u64]) { let max: usize = match arr.iter().max() { Some(&x) => x as usize, None => return, }; // Make radix a power of 2 close to arr.len() cmp(&arr[mid]) { Ordering::Less => right = mid, Ordering::Equal => return Some(mid), Ordering::Greater => left = mid + 1, } } None } #[cfg(test)] mod assert_eq!(index, Some(0)); } #[test] fn search_strings() { let index = binary_search(&"a", &vec!["a", "b", "c", "d", "google", "zoo"]); assert_eq!(index, Some(0)); }0 码力 | 270 页 | 8.46 MB | 1 年前3Computer Programming with the Nim Programming Language
Command-line parsing Regular expressions Part IV: Some Programming Tasks Permutations Combinations Sorting Reading CSV files and other data Some small exercises Minimum spanning tree Part V: External language was designed for teaching purposes only, it was soon expanded by commercial vendors and gained some popularity. Later, Wirth presented the language Modula-2 with improved syntax and the module concept often assuming that the reader is already familiar with the foundations of computer hardware and has some programming experience. This is generally a valid approach, as most people are taught this fundamental0 码力 | 865 页 | 7.45 MB | 1 年前3Computer Programming with the Nim Programming Language
Command-line parsing Regular expressions Part IV: Some Programming Tasks Permutations Combinations Sorting Reading CSV files and other data Some small exercises Minimum spanning tree Part V: External language was designed for teaching purposes only, it was soon expanded by commercial vendors and gained some popularity. Later, Wirth presented the language Modula-2 with improved syntax and the module concept often assuming that the reader is already familiar with the foundations of computer hardware and has some programming experience. This is generally a valid approach, as most people are taught this fundamental0 码力 | 784 页 | 2.13 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Some details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 IV: Some Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.54 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Some details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 IV: Some Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.53 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Some details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 IV: Some Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.50 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Some details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 IV: Some Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.53 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Some details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 IV: Some Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.53 MB | 1 年前3Computer Programming with the Nim Programming Language
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Some details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 IV: Some Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 512 页 | 3.55 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100