Authors: Kate Gregory, Giovanni Dicanio, Dror Helper, Dmitri Nesteruk, Kenny Kerr

C++ is an object-oriented programming language that was first developed by Bjarne Stroustrup. It was originally created to be an extension of the C language, which is a... Read more

What you will learn

  • Operators
  • Objects
  • Classes
  • Flow of control
  • References
  • Polymorphism and inheritance
  • C++ Type System
  • Heap/stack semantics
  • Stream I/O
  • Overloading
  • Lambdas
  • Exceptions
  • Scope management
  • Templates
  • C++ Standard Library
  • Concurrency


If you’re just learning to program you can get a gentle introduction with Learn How to Program with C++ . If you already know how to program and just want to learn C++, you can start with the C++ Fundamentals course.


If you’re just learning to program you can get a gentle introduction with Learn How to Program with C++ . If you already know how to program and just want to learn C++, you can start with the C++ Fundamentals course. By the time you’ve completed these courses, you’ll be confident in writing basic applications and be familiar with the features offered in C++.

Learn How to Program with C++

by Kate Gregory

Jul 22, 2013 / 6h 57m

6h 57m

Start Course

C++ has a reputation for being a very difficult language to learn, and to use well. Changes to the language and the library that accompanies it have changed that. Beginners can now learn C++ and write real applications. In this course you'll learn the important parts of C++ 11 syntax, get an introduction to the most useful parts of the Standard Library, and be challenged to write applications yourself in addition to watching someone else write and explain code.

Table of contents
  1. Getting Started43m
  2. Streams, Locals, and Flow of Control1h 5m
  3. Functions and Headers56m
  4. Strings and Collections59m
  5. Writing Classes59m
  6. Compiler Specific Topics26m
  7. Topics to Learn Later54m
  8. Legacy Constructs52m

C++ Fundamentals Including C++ 17

by Kate Gregory

Mar 6, 2018 / 5h 48m

5h 48m

Start Course

C++ is a general purpose programming language that is used by millions of developers. It has a reputation for being hard to learn and use, but with the changes in the language over the last few decades, this reputation is no longer deserved. C++ offers a powerful combination of performance and abstraction that other languages don’t have. In this course, C++ Fundamentals Including C++ 17, you'll learn how to write simple console applications and be ready to move on to writing platform-specific code. First, you’ll learn the basics of language syntax: declaring variables, classes, building expressions using operators and functions, working up to templates, indirection, and polymorphism. You'll explore the syntax additions from C++ 11, C++ 14, and C++17, using any modern compiler to run the examples. You'll also see the principles of Modern C++ in action, relying on the Standard Library and using idioms like Resource Acquisition is Initialization to reduce the effort involved in memory management. By the end of this course, you’ll be comfortable reading and writing Modern C++, including features added in C++17.

Table of contents
  1. Course Overview2m
  2. Understanding C++ in Context16m
  3. Tools33m
  4. Variables and Fundamental Types23m
  5. Language Basics - User Defined Types41m
  6. Language Basics – Flow of Control26m
  7. Language Basics - Functions37m
  8. Language Basics - Operators37m
  9. Templates30m
  10. Indirection32m
  11. Memory Management31m
  12. Indirection and Inheritance35m

Practical C++14 and C++17 Features

by Giovanni Dicanio

Dec 11, 2017 / 2h 33m

2h 33m

Start Course

After the C++11 "revolution," several other features were added by the C++14 and C++17 standards. While C++11 was a massive improvement over the previous C++98/03, C++14 and C++17 are kind of more incremental improvements; nonetheless, interesting, powerful and useful features were added in these recent C++ standards. In this course, Practical C++14 and C++17 Features, you'll learn many practical features added in the C++14 and C++17 standards, assuming you have only a basic knowledge of C++11, like the one you can get watching the "C++11 from Scratch" course; any advanced C++11 concepts will be explained here on a need-to-know basis. Among the many topics discussed in this course, you'll start learning small but nice features, like digit separators. Then you'll explore more substantial features, like polymorphic lambdas (the course will also introduce basic lambdas as well, so you're not left in the dark if you don't know C++11 lambdas), and relaxed constexpr functions. You'll also learn about improvements to the C++ standard library, like the new standard-defined suffixes for the Chrono library (which will be introduced as well), or std::make_unique in combination with the unique_ptr smart pointer (that'll be introduced here as well). Finally, you'll explore new practical C++17 features, ranging from nested namespaces, to "constexpr if" and structured bindings. The features will be discussed using both slides, and with concrete C++ demo code, including showing some subtle bugs, and how to fix them. After completing this course, you'll be able to write simpler, clearer, more efficient and higher-quality modern C++ code, applying the features discussed in this course in your own C++ codebases. This course targets developers who are already familiar with basic C++11, and want to extend their knowledge to practical C++ features introduced in C++14 and in C++17. If you need a beginner-oriented introduction to C++11, you can watch the "C++11 from Scratch" course.

Table of contents
  1. Course Overview2m
  2. Convenient Syntactic Sugar13m
  3. Miscellaneous Improvements to C++1126m
  4. Standard Library Improvements48m
  5. Better Lambdas26m
  6. Practical Convenient C++17 Language Improvements36m

C++ Unit Testing Fundamentals Using Catch

by Dror Helper

Oct 21, 2016 / 1h 38m

1h 38m

Start Course

Writing unit tests is a big part of being a good software developer. Unfortunately, unit testing in C++ is far from being trivial and good unit testing frameworks are hard to find. In this course, C++ Unit Testing Fundamentals Using Catch, you will learn how to write robust unit tests using Catch, a simple-to-use, yet flexible and powerful unit testing framework for C++. You will learn what makes Catch different from other xUnit frameworks, and how it can be used to write unit tests for your C++ code. You will also get to see how to run Catch from the command line, how to use test fixtures, and how to create maintainable tests. When you're finished with this course, you will have a foundational knowledge of Catch and unit testing in C++ that would help you create better, cleaner C++ code.

Table of contents
  1. Course Overview1m
  2. Introducing Catch20m
  3. Organizing Your Tests Using Catch26m
  4. Asserting Using Catch23m
  5. Handling Duplicate Code26m


These intermediate courses will take you on a deep-dive in designing beautiful and functional C++ code. You’ll learn how to write efficient and modern C++ using design patterns and the C++ standard library.

Introduction to Data Structures and Algorithms in C++

by Giovanni Dicanio

Oct 8, 2018 / 3h 29m

3h 29m

Start Course

Knowing some fundamental data structures and algorithms both in theory and from a practical implementation perspective helps you in being a better C++ programmer, gives you a good foundation to understand standard library’s containers and algorithms inner “under the hood” mechanics, and serves as a kind of knowledge that is required in several coding interviews, as well. In this course, Introduction to Data Structures and Algorithms in C++, you’ll learn how to implement some fundamental data structures and algorithms in C++ from scratch, with a combination of theoretical introduction using slides, and practical C++ implementation code as well. No prior data structure or algorithm theory knowledge is required. You only need a basic knowledge of C++ language features. First, you'll discover how to develop a C++ class to safely use arrays, with automatic memory management using constructor and destructor, and safely accessing array elements with bounds checking. Then, you’ll see how to further improve this array class, overloading the insertion operator to offer a simple nice idiomatic printing syntax for arrays, and optimizing the array class with move semantics. You’ll also learn how to properly copy arrays, and you’ll see the copy-and-swap idiom in action. Then, you’ll learn how to generalize the array class with templates. Next, you’ll learn about the Big O notation in a practical intuitive way, and you’ll apply that knowledge to a couple of search algorithms. You’ll start learning how to search using the simple linear search, and then you’ll see how to improve searching, using binary search. I’ll first introduce these algorithms using slides, and then you’ll see them in action in concrete C++ demo code. Finally, you’ll discover how to implement other common data structures, like the stack with its LIFO policy and push and pop operations, and linked lists, including operations like list node insertion and removal, and searching elements in a linked list. After completing this course, you will be able to implement some common fundamental data structures and algorithms from scratch in C++, you’ll have a practical understanding of the Big O notation to evaluate and compare algorithm performance trends, and you’ll see in action, several interesting C++ coding techniques that you’ll be able to reuse in your own C++ projects as well. Moreover, you will be able to use this foundational knowledge to move forward to more advanced C++ data structures and algorithms topics.

Table of contents
  1. Course Overview2m
  2. Safely Using Arrays43m
  3. Improve Array Implementation45m
  4. Efficiently Searching41m
  5. Implementing a Last-in First-out Pattern with the Stack35m
  6. Introducing Node-based Data Structures: Linked-lists41m

Beautiful C++: Updating Legacy Code

by Kate Gregory

Nov 19, 2018 / 5h 2m

5h 2m

Start Course

C++ has been a popular programming language for decades, which means there’s some really old code out there. Some of it is very hard to read and maintain. Capabilities have been added to the language and standard library that could simplify this code, and possibly make it faster or eliminate nagging intermittent bugs. In this course, Beautiful C++: Updating Legacy Code, you’ll learn how to approach a large and unfamiliar codebase and make changes to modernize code. First, you'll learn some strategies for deciding exactly what to change. Then, you'll be introduced to language features and library capabilities that may not have existed when your code was first written, and can make it better now. Finally, you'll discover how to evaluate your progress and spread your gains through the rest of the code. By the end of this course, you'll be prepared for your code to last another generation or two and take full advantage of what modern C++ has to offer.

Table of contents
  1. Course Overview1m
  2. What Target Are You Trying to Reach?19m
  3. The Big Picture33m
  4. The Compiler Is Your Friend48m
  5. Use C++ as C++47m
  6. Language Changes in C++ 11, 14, and 1734m
  7. The Standard Library Will Save You Time and Trouble50m
  8. Reorganizing for Transparency46m
  9. When Are You Done?20m

Beautiful C++: STL Algorithms

by Kate Gregory

Jun 30, 2016 / 4h 24m

4h 24m

Start Course

If you're a C++ developer, save yourself valuable time and work by learning how to use the algorithm header. In this course, Beautiful C++: STL Algorithms, you'll learn the functions in the algorithm header. You'll find out how iterators multiply the power of the library. Next, you'll learn the conventions that lower your mental burden. Finally, you'll learn how to use the same algorithm with different collections so you don't have to learn new functions. After this course, you'll know what the algorithm header has to offer you and how to use it to your advantage while developing.

Table of contents
  1. Course Overview2m
  2. Standard Library Philosophy and Approach19m
  3. Counting and Finding40m
  4. Sorting35m
  5. Comparing and Accumulating24m
  6. Generating and Manipulating Collections52m
  7. Using the Power of Iterators36m
  8. Unexpectedly Useful Operations23m
  9. Conventions28m

Design Patterns in C++: Creational

by Dmitri Nesteruk

Jan 28, 2016 / 4h 12m

4h 12m

Start Course

A look at the creational design patterns and their implementation using Modern C++. Covers the Factory design pattern (Factory Method, Abstract Factory) as well as Builder, Prototype, and Singleton. Also covers the SOLID design principles, demonstrates Dependency Injection via Boost.DI, and even shows an example of a Maybe Monad.

Table of contents
  1. Course Overview1m
  2. Preliminaries1h 14m
  3. Builder50m
  4. Factories41m
  5. Prototype46m
  6. Singleton37m

Design Patterns in C++: Structural - Adapter to Decorator

by Dmitri Nesteruk

Apr 22, 2016 / 2h 24m

2h 24m

Start Course

The correct application and recognition of design patterns is an important skill for developers and architects. This course, Design Patterns in C++: Structural - Adapter to Decorator (part of a multi-series course on C++ patterns), introduces you to Structural design patterns. First you'll cover the Adapter and Bridge patterns, moving on to the Composite and Decorator design patterns. You'll also be shown different ways in which these patterns can be implemented in modern C++ (C++ 11 and beyond). Software required: a C++ IDE (e.g., Visual Studio, CLion) or a text editor (e.g., VIM, EMACS) together with a C++ compiler (e.g., GCC, Clang).

Table of contents
  1. Course Overview1m
  2. Adapter39m
  3. Bridge23m
  4. Composite36m
  5. Decorator42m

Design Patterns in C++: Structural - Façade to Proxy

by Dmitri Nesteruk

Jun 23, 2016 / 1h 46m

1h 46m

Start Course

The correct application and recognition of design patterns is an important skill for developers and architects. This course, Design Patterns in C++: Structural - Façade to Proxy, is part of a multi-series course on C++ patterns, and it introduces you to structural design patterns. It covers the Façade, Flyweight, Null Object, and Proxy design patterns, showing different ways in which these patterns can be implemented in modern C++ (C++ 11 and beyond). First, you'll learn about Façade. The Façade pattern attempts to hide the interface of a complicated system (often involving several components and their relationships) behind a single, easy-to-use interface. Next, you'll learn about Flyweight, which is used to save up on memory by sharing as much data as is possible with similar objects. After that you'll learn about Null Objects, which lets you provide a neutered, no-op object which conforms to the interface but does absolutely nothing at all. Finally, you'll learn about Proxy design patterns, which lets an object 'stand in' for another object, conforming to the same interface while performing additional operations. By the end of this course, you should be able to recognize these design patterns in other libraries and you'll be able to then apply these patterns in your own work.

Table of contents
  1. Course Overview1m
  2. Façade32m
  3. Flyweight30m
  4. Null Object15m
  5. Proxy26m


Our advanced C++ courses are not for the faint of heart, but don’t be afraid! You will gain a deeper understanding of threading and synchronization and some pro tips for squeezing the most performance possible out of your code.

Modern C++ Concurrency

by Kenny Kerr

Oct 15, 2013 / 4h 33m

4h 33m

Start Course

This course will introduce you to modern C++ concurrency on the Windows operating system. Unfortunately, standard or portable concurrency is still in its infancy so a comprehensive study of concurrency cannot get away from the practical and platform-specific aspects of the craft. As such, this course uses the Windows operating system as the playground to explore concurrency in C++. This course will prepare you with a deep understanding of threads and synchronization at the OS level, including modern synchronization primitives such as slim reader/writer locks and condition variables. You will learn all about the mighty Windows thread pool API and the Concurrency Runtime. Finally, you will be introduced to some of the shortcomings that plague the C++11 Thread Support Library.

Table of contents
  1. Getting Started7m
  2. Threads51m
  3. Synchronization49m
  4. Condition Variables33m
  5. The Windows Thread Pool38m
  6. The Windows Thread Pool - Part 235m
  7. The Concurrency Runtime38m
  8. The C++11 Thread Support Library19m

High-performance Computing in C++

by Dmitri Nesteruk

Sep 17, 2015 / 4h 3m

4h 3m

Start Course

Do you want to get the absolute most performance out of your hardware? Want to write code that scales across CPU registers, multi-core, and machine clusters? Then this is the course for you!

Table of contents
  1. Single Instruction Multiple Data (SIMD)52m
  2. Open Multi-Processing (OpenMP)37m
  3. Message Passing Interface (MPI)56m
  4. C++ Accelerated Massive Parallelism (C++ AMP)1h 0m
  5. Generative Art Demo36m
Offer Code *
Email * First name * Last name *
Country *

* Required field

Opt in for the latest promotions and events. You may unsubscribe at any time. Privacy Policy

By activating this benefit, you agree to abide by Pluralsight's terms of use and privacy policy.

I agree, activate benefit