Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve(docs): Basics -> Functions #191

Open
27 of 29 tasks
PoetaKodu opened this issue Mar 6, 2023 · 0 comments
Open
27 of 29 tasks

improve(docs): Basics -> Functions #191

PoetaKodu opened this issue Mar 6, 2023 · 0 comments
Assignees
Labels
course Regarding a course lesson/article est. time: < 1 week A loose time estimation of less than one week of work.
Milestone

Comments

@PoetaKodu
Copy link
Collaborator

PoetaKodu commented Mar 6, 2023

Overview

Rework the lesson structure, split into sublessons (examples, exercises, etc.)

Functions

  • Lesson structure
    • Motivation
    • Introduction
    • Creating functions
      • a basic example without parameters (a procedure)
      • with parameters
      • return statement
      • returning a value
      • Declaration and definition
    • Overloading (basics)
    • Summary
  • 💡 Examples
    • calculate area of a circle
    • convert Fahrenheit to Celsius
    • calculate factorial of a number
    • average value of array of numbers
    • calculate gcd
    • calculate a power of a number (exponent is a positive integer)
    • reverse a string
    • check if a string is a palindrome
  • 💢 Common problems
    • incorrect number or type of arguments
    • not returning a value
    • missing declaration
  • 📚 Exercises
    • count occurrences of a character in a string
    • count number of vowels in a string
    • detect if string is an anagram
    • convert int to string
@PoetaKodu PoetaKodu converted this from a draft issue Mar 6, 2023
@PoetaKodu PoetaKodu self-assigned this Mar 6, 2023
@PoetaKodu PoetaKodu added this to the March 2023 milestone Mar 6, 2023
@PoetaKodu PoetaKodu moved this to In Progress in Cpp-Lang.net development Mar 6, 2023
@PoetaKodu PoetaKodu added course Regarding a course lesson/article est. time: < 1 week A loose time estimation of less than one week of work. labels Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
course Regarding a course lesson/article est. time: < 1 week A loose time estimation of less than one week of work.
Projects
Status: In Progress
Development

No branches or pull requests

1 participant