लर्निंग पाथ

Rust की बुनियाद

पहले प्रोग्राम से लेकर वेरिएबल, टाइप, कंडीशन, लूप, स्ट्रिंग, वेक्टर और फ़ंक्शन तक, हर विषय के बाद एक चैलेंज के साथ।

17 पाठ · 31 चैलेंज

1 शुरुआत 5 पाठ

  1. पाठ 2 चैलेंज Hello World and Program Structure Write your first Rust program and learn what fn main and println! do.
  2. पाठ 2 चैलेंज Variables and Mutability Declare variables with let, allow changes with mut, and use constants and shadowing.
  3. पाठ 2 चैलेंज Data Types Work with integers, floating-point numbers, booleans and characters, and convert between them.
  4. पाठ 2 चैलेंज Operators and Arithmetic Use arithmetic, comparison and logical operators, and see how integer division works.
  5. पाठ 2 चैलेंज Reading User Input Read a line from the keyboard and turn it into a number safely.

2 निर्णय लेना 2 पाठ

  1. पाठ 2 चैलेंज Conditions with if and else Choose what runs with if, else if and else, and use if as an expression.
  2. पाठ 1 चैलेंज FizzBuzz Solve the classic FizzBuzz problem with match on a tuple.

3 लूप 2 पाठ

  1. पाठ 2 चैलेंज Loops: for, while and loop Repeat code with for over a range, while with a condition, and loop with break.
  2. पाठ 2 चैलेंज Prime Numbers Check whether a number is prime and list the primes up to 30.

4 स्ट्रिंग और टेक्स्ट 2 पाठ

  1. पाठ 2 चैलेंज Strings: String and &str Create, grow, search and split text with Rust's two string types.
  2. पाठ 1 चैलेंज Reverse a String Reverse the characters of a string and the words of a sentence.

5 कलेक्शन 3 पाठ

  1. पाठ 2 चैलेंज Tuples and Arrays Group values with tuples and store a fixed number of items in an array.
  2. पाठ 2 चैलेंज Vectors Store a growing list of values in a Vec and read items safely.
  3. पाठ 2 चैलेंज Fibonacci Sequence Generate Fibonacci numbers with a loop and a vector.

6 फ़ंक्शन 2 पाठ

  1. पाठ 2 चैलेंज Functions and Return Values Define functions with typed parameters and return values.
  2. पाठ 2 चैलेंज Binary Search Find a value in a sorted slice by halving the search range.

7 ऑब्जेक्ट और क्लास 1 पाठ

  1. पाठ 1 चैलेंज Structs Group related values into your own type with named fields.
आगे बढ़ें: प्रोग्रामिंग की बुनियाद