- ตัวดำเนินการ
-
เรียนรู้
เรียน Python ตัวอย่างที่รันได้, NumPy, pandas และอื่น ๆ เรียน AIโครงข่ายประสาท ML และ LLM ตั้งแต่ศูนย์ เรียน C และ C++ พอยน์เตอร์ หน่วยความจำ STL และ C++ สมัยใหม่ เรียน C#พื้นฐาน C#, OOP, LINQ, async และแบบฝึกหัด .NET เรียน Matplotlibกราฟเส้น แท่ง กระจาย และวงกลม พร้อมตัวแสดงภาพแบบโต้ตอบ เรียน RustOwnership, trait, การจัดการข้อผิดพลาด และ thread เรียน GoSlice, interface, goroutine และ channel อัลกอริทึม Python การค้นหา การเรียงลำดับ รีเคอร์ชัน และภาพจำลอง O(n) อัลกอริทึม C และ C++ เปรียบเทียบการเขียนด้วย C และ C++ เขียนโปรแกรมสำหรับเด็ก เรียนเขียนโปรแกรมผ่านการเล่น!
- โจทย์ใหม่
- สำหรับครูใหม่
- อัปเดต
- เลี้ยงกาแฟสักแก้ว
Struct, Enum และ Trait
ออกแบบข้อมูลด้วย struct และ enum ใช้ pattern matching จัดการ Option และ Result และแชร์พฤติกรรมด้วย trait และ generics
- บทเรียน โจทย์ 1 ข้อ Structs Group related values into your own type with named fields.
- บทเรียน โจทย์ 2 ข้อ Methods and impl Blocks Attach functions to a struct with impl, including constructors.
- บทเรียน โจทย์ 1 ข้อ Enums Define a type that is one of several variants, each with its own data.
- บทเรียน โจทย์ 2 ข้อ Pattern Matching with match Compare a value against patterns with match, guards and if let.
- บทเรียน โจทย์ 1 ข้อ Temperature Converter Convert between Celsius and Fahrenheit with an enum.
- บทเรียน โจทย์ 2 ข้อ Option: Values That May Be Missing Represent a missing value with Option instead of null.
- บทเรียน โจทย์ 2 ข้อ Error Handling with Result Return errors as values with Result and pass them on with the ? operator.
- บทเรียน โจทย์ 1 ข้อ Bank Account with Result Model deposits and withdrawals that can fail with your own error type.
- บทเรียน โจทย์ 1 ข้อ Traits Describe shared behavior with a trait and implement it for different types.
- บทเรียน โจทย์ 1 ข้อ Generics Write one function or struct that works with many types.