C++20 Fundamentals
If C++ scares you, or you've heard that it's a difficult language, this course will show you how easy Modern C++ can be. You will learn the fundamentals of the language so that you can write useful C++ applications.
What you'll learn
C++ is a powerful general purpose language that has grown and changed over decades, which can make it feel difficult to learn. In this course, C++20 Fundamentals, you’ll learn to write simple modern C++ programs using the language and its standard library. First, you’ll explore the basics of the language syntax. Next, you’ll discover how to combine pieces into larger programs and save time with the standard library. Finally, you’ll learn how to avoid common pitfalls that used to be problems for C++ developers in older versions of the language. When you’re finished with this course, you’ll have the skills and knowledge of C++ needed to write useful applications targeting your chosen platform and framework.
Table of contents
- Introduction 1m
- C++ Is Not Only an OO Language 1m
- Functions 1m
- Parameters by Value or Reference 4m
- Returning a Value 1m
- Demo: Free Functions 8m
- Member Functions 4m
- Demo: Member Functions 4m
- Overloads 2m
- Understanding Error Messages 3m
- Demo: Error Messages 10m
- Causes of Error Messages 3m
- Const Member Functions 1m
- Demo: Const Member Functions 5m
- Const Member Function Syntax 1m
- Lambdas: Functions With No Name 3m
- Summary 2m
- Introduction 1m
- What Is an Error? 5m
- Chains of Calls 2m
- Return a Boolean 2m
- Demo: Return a Boolean 6m
- Return an Error Code 1m
- Demo: Return an Error Code 3m
- Error Code as Output Parameter 1m
- Return std::optional 1m
- Demo: Return std::optional 3m
- Return Expected 1m
- Demo: Return Expected 4m
- Exceptions 5m
- Demo: Exceptions 7m
- Why Not Always Use Exceptions? 6m
- Cleanup 5m
- Choosing Your Approach 2m
- Summary 2m