Skip to content

improve(docs): Basics -> Arrays #190

@PoetaKodu

Description

@PoetaKodu

Overview

Make the lesson structure fit the following (note the actual names of the course lessons are in bold):

Arrays

  • 1. Introduction
    • Motivation: why do we want to use them.
    • Arrays in C++: types of arrays in the language
  • 2. Dynamic arrays
    • Lesson structure
      • creating a vector
      • accessing elements
      • adding elements
      • removing elements
      • reading size
      • displaying elements
    • 💡 Examples
    • 💢 Common problems
    • 📚 Exercises
  • 3. Fixed-size arrays
    • Lesson structure
      • creating an array
      • accessing elements
      • note about not being able to add or remove elements
      • filling the content
      • reading size, mention that it is always the same
      • displaying elements
    • 💡 Examples
    • 💢 Common problems
    • 📚 Exercises
  • 4. Using algorithms - show examples that require minimal knowledge of the language but allow the reader to play with vectors and arrays
    • max value with std::ranges::max()
    • min value with std::ranges::min()
    • reverse with std::ranges::reverse()
    • sorting with std::ranges::sort()
    • ensure the lesson properly shows both std::array and std::vector examples
  • 5. C-style arrays
    • explain why we don't want to use C-style arrays
    • describe when and how to use safer alternatives instead
    • provide basic examples of C-style array usage
  • 📚 Exercises

Metadata

Metadata

Assignees

Labels

courseRegarding a course lesson/articleest. time: < 1 weekA loose time estimation of less than one week of work.

Type

No type

Projects

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions