- Exécuteurs
-
Apprendre
Apprendre Python Exemples exécutables, NumPy, pandas et plus Apprendre l'IARéseaux de neurones, ML et LLM de zéro Apprendre le C et le C++ Pointeurs, mémoire, STL et C++ moderne Apprendre le C#Bases, POO, LINQ, async et exercices .NET Apprendre MatplotlibCourbes, barres, nuages de points et camemberts avec visualiseurs Apprendre RustOwnership, traits, gestion des erreurs et threads Apprendre GoSlices, interfaces, goroutines et channels Algorithmes Python Recherche, tri, récursivité et visualisations O(n) Algorithmes C et C++ Comparer les implémentations en C et C++ Programmation pour enfants Apprends à coder en jouant !
- DéfisNouveau
- EnseignantsNouveau
- Mises à Jour
- Offrez-moi un café
Les bases de Rust
De votre premier programme aux variables, types, conditions, boucles, chaînes, vecteurs et fonctions, avec un défi après chaque sujet.
1 Premiers pas 5 leçons
- Leçon 2 défis Hello World and Program Structure Write your first Rust program and learn what fn main and println! do.
- Leçon 2 défis Variables and Mutability Declare variables with let, allow changes with mut, and use constants and shadowing.
- Leçon 2 défis Data Types Work with integers, floating-point numbers, booleans and characters, and convert between them.
- Leçon 2 défis Operators and Arithmetic Use arithmetic, comparison and logical operators, and see how integer division works.
- Leçon 2 défis Reading User Input Read a line from the keyboard and turn it into a number safely.
2 Conditions 2 leçons
- Leçon 2 défis Conditions with if and else Choose what runs with if, else if and else, and use if as an expression.
- Leçon 1 défi FizzBuzz Solve the classic FizzBuzz problem with match on a tuple.
3 Boucles 2 leçons
- Leçon 2 défis Loops: for, while and loop Repeat code with for over a range, while with a condition, and loop with break.
- Leçon 2 défis Prime Numbers Check whether a number is prime and list the primes up to 30.
4 Chaînes et texte 2 leçons
- Leçon 2 défis Strings: String and &str Create, grow, search and split text with Rust's two string types.
- Leçon 1 défi Reverse a String Reverse the characters of a string and the words of a sentence.
5 Collections 3 leçons
- Leçon 2 défis Tuples and Arrays Group values with tuples and store a fixed number of items in an array.
- Leçon 2 défis Vectors Store a growing list of values in a Vec and read items safely.
- Leçon 2 défis Fibonacci Sequence Generate Fibonacci numbers with a loop and a vector.
6 Fonctions 2 leçons
- Leçon 2 défis Functions and Return Values Define functions with typed parameters and return values.
- Leçon 2 défis Binary Search Find a value in a sorted slice by halving the search range.