This course will help you dive deep into the world of function constructs in C++. You will revisit the basics of functions, explore advanced topics like lambda expressions and recursion, and master techniques essential for efficient and effective function usage within your programs.
Overview
Syllabus
- Lesson 1: Recall Functions in C++
- Add an Overloaded Function for Three Integers
- Implement Function with Default Parameter
- Finding the Maximum Value in an Array
- Sum of Elements in a Vector
- Overload Function to Sum Values in a Vector and a Map
- Lesson 2: Template Functions in C++
- Modify the `findMax` Template to Handle Three Values
- Summing Elements with Template Functions
- Fix the Template Function for Swapping Values
- Accessing Elements in a Vector Using a Template Function
- Lesson 3: Anonymous Functions in C++
- Implement Lambda with Call Counter
- Sort Vector in Descending Order Using Lambda
- Modify Lambda to Accept Additional Parameter
- Filtering Even Numbers with Lambda Function
- Lesson 4: Remembering Recursion in C++
- Counting Digits with Recursion
- Sum of Digits with Recursion
- Tracking Recursive Calls in Factorial Computation
- Calculating Fibonacci Numbers Recursively in C++
- Recursive Sum of Even Digits
- Lesson 5: Mastering Recursion
- Tail-Recursive Factorial Conversion
- Transform integerSum Function to Tail Recursive
- Transform Recursive Power Function to Tail-Recursive Function
- Convert Fibonacci Function to Tail-Recursive Function