A Complete Introduction to the C++ Programming Language

Learn the C++ programming language with a step-by-step introduction of all the important concepts and language features.
3.6 (4 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
32 students enrolled
$19
$50
62% off
Take This Course
  • Lectures 67
  • Length 3 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 9/2015 English

Course Description

This course will teach you the fundamentals of the C++ programming language, with a focus on Modern C++ features and the efficient use of tools. Start with the fundamentals and work your way up to advanced C++11 concepts and OOP mastery!

Here are some of the things we are going to cover:

  • ˜C++ ecosystem: compilers, IDEs
  • ˜The compilation process
  • ˜Data types: numeric, strings, arrays, etc.
  • ˜Control flow
  • ˜Memory management
  • ˜User-defined types
  • ˜Object-oriented programming
Why take this course? Glad you asked. This course is...
  • ˜Fast-paced, yet feature-complete
  • ˜Covers only modern C++ (C++11, C++14, etc.)... no legacy C/C++!
  • ˜Opinionated towards best practices
  • ˜Additional content – driven by you!
That last part means that additional lectures will appear driven by your comments and requests.
Enjoy!

What are the requirements?

  • Access to a computer is required for following this course (duh!)

What am I going to get from this course?

  • Comfortably write, compile, link and run C++ programs
  • Solve problems using the C++ programming language
  • Apply modern C++ programming practices

What is the target audience?

  • Anyone interested in the C++ programming language
  • Course not suitable for people who do not want to write super-fast native code

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Overview
01:33

This lecture introduces you to the entire course. This is where you get to find out what the course is all about, how it's structured and what it actually covers.

00:58

What is this beast we call C++? Why is it worth learning C++ as opposed to C#, Java or <insert fancy language here>?

02:25

Let's talk about the industries that use C++ most, and why they are using it.

02:47

What's so great about C++?

03:19

C++ has plenty of issues, and it pays to be aware of them in advance.

01:15

This lecture discusses the new term Modern C++ which refers, roughly, to the C++11 and later standards of the language.

02:21

The tool that turns your code into an actual program is called a compiler, and there are lots of C++ compilers out there.

02:17

Making an application is not easy, which is why build systems exist - they help us put together all the necessary parts to produce the final product. Build systems can be local or distributed (i.e., use more than one computer).

02:34

If you want to use code that someone else has written, or share your code to be reused, you will be working with libraries. There are two types of libraries - static and dynamic.

02:27

Integrated Development Environments (IDEs) make life a lot easier.

Homework: Choose Your Editor
Article
Section 2: Getting Started
05:40

What is source code, exactly?

04:47

The preprocessor is a nasty, archaic part of the compilation process. But, for now, there's no way of avoiding it.

01:33

Finally, the process of turning source code into something useful... object files!

02:42

Once you have all your object files, you can link them together to produce an executable or a library.

08:07

A bonus video on using Cling for scripting... if you are starting with C++, you totally must get yourself Cling. It's just that good.

Homework: Install and Use Cling
Article
Section 3: Numeric Types
01:38

We discuss the notion of a type system, what it means to work with a statically typed language, and the difference between built-in and user-defined types.

02:27

Variables store data. Simple as that.

05:23

These data types store whole numbers, like -42 or 1 million. But there are lots of them, they can be signed or unsigned, and C++ has plenty of issues with representing integral types consistently.

04:12

Different symbols such as + or / that can operate on numbers.

02:06

Finally, non-whole numbers! And things are a little simpler here than with integers.

02:05

What happens when you add an int and a float? There are rules for this!

01:28

The auto keyword saves a lot of effort. And now is as good a time as any to become familiar with it.

01:35

A few words about where you can find common mathematical operations, complex number support, and a word about the different math libraries that are out there.

Numeric Types Quiz
6 questions
Homework: Solve a Quadratic Equation
Article
Section 4: Control Flow
02:06

We take a look at logical (boolean) types and the two special values `true` and `false`.

01:48

We look at how to compare values using operators such as `<`, `!=` and others.

00:56

We look at how conditions can be grouped using `&&` (AND), `||` (OR) and other operators.

02:54

What is a scope and why should you care?

02:52

A look at how to execute code conditionally with the `if-then-else` construct. Also we discuss the ternary `?:` operator that can offer a shorter alternative.

01:49

The `switch` makes it easier to check a value against several discrete cases. The `break` lets you jump out of various control flow constructs.

02:16

The `while` loop lets you execute the associated code block while a condition holds.

01:32

The most versatile loop of them all.

3 questions

Some questions on your understanding of Control Flow concepts.

Section 5: Memory Management
02:02

We discuss some of the memory areas that are used by a typical C++ program.

02:40

We discuss the Stack, which is an area of memory for statically allocated objects of known size.

02:51

We discuss the Heap, an area of memory used for dynamic allocation.

03:24

Pointers are variables which store memory addresses, i.e., point to other variables.

02:01

References refer to other variables. Their syntax is different (and arguably simpler) than that of pointers.

5 questions

Some quesitons about memory management.

Section 6: Arrays
06:12

Arrays are nice and useful.

03:36

A discussion of how to go through all the elements in the array.

03:14

How to make 2D arrays on the stack on the heap. Extensible to arrays of any dimension.

02:14

A more user-friendly array class from the Standard Library.

01:20

An extensible array type that you should be using for just about every situation where a collection of same-type elements needs to be stored.

Section 7: Characters and Strings
04:24

We look at how to store textual information in C++.

01:28

Standard Library comes to the rescue with a string type we can actually use.

02:27

A look at some useful things you can do with an std::string.

02:18

Another badly defined piece of the C++ text handling puzzle. Nothing to do with Unicode.

Characters and Strings Quiz
3 questions
Section 8: Functions
02:22

What are functions and why do we need them?

01:30

A note on function return types. What if a function doesn't return anything?

02:21

The function that gets called first in every executable.

02:12

How to get a pointer to a function?

04:49

The pinnacle of human achievment: lambda functions.

Section 9: User Defined Types
01:48

Learn how to make neat aliases for existing types.

03:05

Learn how to represent categorical variables using enumerations.

01:19

A single area of memory can be treated simultaneously as different data types. This is what unions are for.

04:39

Finally, a custom data type with members!

01:53

A note that UDTs can contain other UDTs ad infinitum.

Section 10: Object-Oriented Programming
02:17

We've met member variables (a.k.a. fields) before, but what are member functions?

02:06

A class is almost the same as a struct. No, really!

03:03

A constructor is a member function that gets called when the class is, err, constructed.

01:18

Called when the class is destroyed, this is the exact opposite of a constructor.

02:07

The ability to automagically acquire another class' fields and functions. No pillaging required.

00:51

An ability to inherit from several classes! You don't get this in C# or Java!

03:30

A way for classes to hide their members from the outside world.

01:36

A Polymorph spell turns a human into a frog. In C++, polymorphism lets derived classes be treated as their parents.

01:26

A useful operator for figuring out if an object is of a particular type.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Dmitri Nesteruk, Quantitative Finance Professional

Dmitri Nesteruk is a developer, speaker and podcaster. His interests lie in software development and integration practices in the areas of computation, quantitative finance and algorithmic trading. His technological interests include C#, F# and C++ programming as well high-performance computing using technologies such as CUDA. He has been a C# MVP since 2009.

Dmitri is a graduate of University of Southampton (B.Sc. Computer Science) where he currently holds a position as a Visiting Researcher. He is also an instructor on an online intro-level Quantitative Finance course, and has also made online video courses on CUDA, MATLAB, D, the Boost libraries and other topics.

Ready to start learning?
Take This Course