C++11 from Scratch
This course will take you from zero to being productive with modern C++, without requiring any previous specific programming knowledge.
What you'll learn
This course is designed to give you everything you need to be productive with modern standard C++. Not every aspect of the C++ language is considered (that would be impossible in a few hour course); instead, the course is focused on some important practical-oriented features of the language. The language features discussed in this course will be shown in action with concrete C++ code samples. This course is a mix of slides and C++ demos. Even basic concepts will be explained, using interesting visuals and metaphors. In this course, C++11 from Scratch, you will begin your C++ journey learning how to compile your C++ code. First, you will start from a simple Hello World program. Next, you will learn how to represent data in your C++ programs with types and variables. Then, you will discover how to write code to make decisions and iterating. Finally, you will explore the basics of the STL vector container, and you will learn how to define your own classes. After following this course, you will be able to learn further C++ elements including minor C++14 additions, building on the solid modern C++ knowledge of this course.
Table of contents
- Introduction 1m
- The C++ Compiler: A Translator 3m
- My First C++ Program: 'Hello, World!' 7m
- Compiling from the Command Line 5m
- Errors and Warnings 5m
- Recap of Common Compiler Options 2m
- Dipping Your Toe in the Water of an IDE 7m
- A Brief Note on Coding Style 2m
- Going Deeper: The Preprocessor and the Linker 8m
- Summary 1m
- Introduction 2m
- What Is a Variable? 9m
- Representing Integer Numbers with the Integer Type 4m
- Basic Operations 3m
- Declaring and Initializing Variables 4m
- Demo: Integer Calculator 5m
- Approximating Real Numbers with Double 2m
- Demo: Temperature Conversions 3m
- Demo: The Roundoff Error 4m
- Representing Text with the Standard std::string Class 9m
- Demo: Say Hi 1m
- Demo: Flowerbox 5m
- Representing Constant Values 5m
- Summary 1m
- Introduction 4m
- Making Decisions Using the if Statement 7m
- A Matter of Coding Style 4m
- Demo: Warming up with Multiplication Problems 6m
- Generating Random Numbers 8m
- Demo: Multiplications with Random Numbers 3m
- Executing Code Repeatedly with for Loops 7m
- Demo: Asking Multiple Multiplication Problems 6m
- Iterating Using while 2m
- Demo: Continue to Prompt Multiplication Problems Using while 5m
- Iterating Using the Range-based for Loop 6m
- A Few Common Beginner’s Errors 10m
- Summary 1m
- Introduction 1m
- Why Functions? 4m
- Demo: Reusing the Temperature Conversion Code with a Function 6m
- Local Variables and Scope 3m
- The Swap Algorithm 3m
- Demo: Modifying Function Parameters – Swap in Action 6m
- Passing Parameters by Value vs. by Reference 3m
- Observing Parameters with const References 4m
- Demo: Observing Parameters – The Underline Function 3m
- Basic Rules for Parameter Passing in C++ 4m
- Function Overloading 4m
- Introducing the New C++11 Trailing Return Type Syntax 2m
- Summary 1m
- Introduction 2m
- Building Layers of Abstractions with Custom Types 6m
- Designing a Simple First Class: Rectangle 2m
- Implementing Rectangle in C++: Data Members and Access Control 8m
- Initializing Objects with Constructors 6m
- Implementing Class Operations with Member Functions 4m
- Demo: The C++ Rectangle Class in Action 6m
- Demo: Three Common Mistakes with Classes 6m
- Automatic Resource Cleanup with Destructors 7m
- Demo: Destructors in Action 8m
- Summary 1m