Beginner → Advanced

C++

Learn modern C++ — pointers, references, memory, classes, templates and the Standard Template Library, explained with short programs.

130 lessons20 modulesFree to read

Course content

Module 1

Getting Started

6 lessons
  1. Not startedWhat is C++?Lesson
  2. Not startedSetting Up Your C++ EnvironmentLesson
  3. Not startedYour First C++ ProgramLesson
  4. Not startedHow a C++ Program is BuiltLesson
  5. Not startedComments, Style & Program StructureLesson
  6. Not startedUnderstanding ErrorsLesson

Module 2

Variables, Types & Constants

7 lessons
  1. Not startedFundamental Data TypesLesson
  2. Not startedVariables & InitializationLesson
  3. Not startedauto & Type DeductionLesson
  4. Not startedConstants: const & constexprLesson
  5. Not startedType Conversions & CastsLesson
  6. Not startedInteger Limits & Fixed-Width TypesLesson
  7. Not startedScope, Lifetime & NamespacesLesson

Module 3

Input, Output & String Basics

5 lessons
  1. Not startedcin, cout & cerrLesson
  2. Not startedReading Full Lines with getlineLesson
  3. Not startedFormatting OutputLesson
  4. Not startedInput ValidationLesson
  5. Not startedstd::string BasicsLesson

Module 4

Operators & Control Flow

7 lessons
  1. Not startedArithmetic, Relational & Logical OperatorsLesson
  2. Not startedIncrement, Assignment, Ternary & BitwiseLesson
  3. Not startedif, else if & elseLesson
  4. Not startedswitch StatementsLesson
  5. Not startedLoops: while, do-while & forLesson
  6. Not startedRange-based for LoopsLesson
  7. Not startedbreak, continue & Nested LoopsLesson

Module 5

Functions

6 lessons
  1. Not startedDefining & Declaring FunctionsLesson
  2. Not startedPass by Value, Reference & const ReferenceLesson
  3. Not startedDefault Arguments & OverloadingLesson
  4. Not startedinline & constexpr FunctionsLesson
  5. Not startedRecursionLesson
  6. Not startedReturning Multiple ValuesLesson

Module 6

Arrays, Vectors & Strings

6 lessons
  1. Not startedC-Style ArraysLesson
  2. Not startedstd::arrayLesson
  3. Not startedstd::vectorLesson
  4. Not started2D Vectors & MatricesLesson
  5. Not startedStrings in Depth & string_viewLesson
  6. Not startedClassic Array & String Algorithms by HandLesson

Module 7

Pointers & References

7 lessons
  1. Not startedThe Memory Model: Stack & HeapLesson
  2. Not startedPointers: &, * and nullptrLesson
  3. Not startedReferences vs PointersLesson
  4. Not startedPointer Arithmetic & ArraysLesson
  5. Not startedconst with Pointers & ReferencesLesson
  6. Not startedDynamic Memory: new & deleteLesson
  7. Not startedFunction PointersLesson

Module 8

Classes & Objects

8 lessons
  1. Not startedWhy OOP? struct vs classLesson
  2. Not startedMembers, Access Specifiers & EncapsulationLesson
  3. Not startedConstructors & Initializer ListsLesson
  4. Not startedDestructors & RAIILesson
  5. Not startedThe this Pointer & const Member FunctionsLesson
  6. Not startedStatic MembersLesson
  7. Not startedfriend Functions & ClassesLesson
  8. Not startedSplitting Classes into .h and .cpp FilesLesson

Module 9

Inheritance & Polymorphism

8 lessons
  1. Not startedInheritance BasicsLesson
  2. Not startedConstructor & Destructor OrderLesson
  3. Not startedOverriding: virtual, override & finalLesson
  4. Not startedAbstract Classes & InterfacesLesson
  5. Not startedVirtual Destructors & How vtables WorkLesson
  6. Not startedMultiple Inheritance & the Diamond ProblemLesson
  7. Not startedComposition vs InheritanceLesson
  8. Not starteddynamic_cast & RTTILesson

Module 10

Operator Overloading & Copy/Move

6 lessons
  1. Not startedOperator Overloading BasicsLesson
  2. Not startedComparisons & the Spaceship Operator <=>Lesson
  3. Not startedSubscript, Call & Conversion OperatorsLesson
  4. Not startedCopy Constructor & Copy AssignmentLesson
  5. Not startedRule of Three, Five & ZeroLesson
  6. Not startedMove Semantics & std::moveLesson

Module 11

Modern Memory Management

5 lessons
  1. Not startedRAII in DepthLesson
  2. Not startedstd::unique_ptrLesson
  3. Not startedshared_ptr & weak_ptrLesson
  4. Not startedmake_unique, make_shared & Custom DeletersLesson
  5. Not startedFinding Memory Bugs: Sanitizers & ValgrindLesson

Module 12

Templates & Generic Programming

6 lessons
  1. Not startedFunction TemplatesLesson
  2. Not startedClass TemplatesLesson
  3. Not startedTemplate SpecializationLesson
  4. Not startedVariadic Templates & Fold ExpressionsLesson
  5. Not startedConcepts & requires (C++20)Lesson
  6. Not startedPerfect Forwarding & Type TraitsLesson

Module 13

STL Containers

8 lessons
  1. Not startedSTL Overview: Containers, Iterators, AlgorithmsLesson
  2. Not startedSequence Containers: vector, deque, listLesson
  3. Not startedOrdered Containers: set & mapLesson
  4. Not startedHash Containers: unordered_map & unordered_setLesson
  5. Not startedContainer Adaptors: stack, queue, priority_queueLesson
  6. Not startedpair, tuple, optional, variant & anyLesson
  7. Not startedIterators & Iterator InvalidationLesson
  8. Not startedChoosing the Right ContainerLesson

Module 14

STL Algorithms & Lambdas

6 lessons
  1. Not startedLambda ExpressionsLesson
  2. Not startedSorting & Custom ComparatorsLesson
  3. Not startedSearching & Checking AlgorithmsLesson
  4. Not startedTransforming, Accumulating & RemovingLesson
  5. Not startedstd::function & FunctorsLesson
  6. Not startedRanges & Views (C++20)Lesson

Module 15

Exceptions & Error Handling

5 lessons
  1. Not startedtry, throw & catchLesson
  2. Not startedCustom Exception ClassesLesson
  3. Not startedException Safety & noexceptLesson
  4. Not startedAlternatives: Error Codes, optional & expectedLesson
  5. Not startedassert, static_assert & DebuggingLesson

Module 16

Files & Streams

5 lessons
  1. Not startedifstream & ofstream BasicsLesson
  2. Not startedLine-by-Line Reading & CSV ParsingLesson
  3. Not startedBinary FilesLesson
  4. Not startedstd::filesystem (C++17)Lesson
  5. Not startedSaving & Loading Objects (Serialization)Lesson

Module 17

Modern & Advanced C++

9 lessons
  1. Not startedTour of Modern C++: C++11 to C++23Lesson
  2. Not startedenum class, Aliases & AttributesLesson
  3. Not startedThreads: std::thread & std::jthreadLesson
  4. Not startedSynchronization: mutex, atomic & condition_variableLesson
  5. Not startedstd::async & FuturesLesson
  6. Not startedModules (C++20) & Large ProjectsLesson
  7. Not startedCMake BasicsLesson
  8. Not startedCoroutines & GeneratorsLesson
  9. Not startedUndefined Behaviour & Performance TipsLesson

Module 18

Data Structures & Algorithms

8 lessons
  1. Not startedBig-O & Complexity AnalysisLesson
  2. Not startedA Templated Linked List ClassLesson
  3. Not startedImplementing a Stack & QueueLesson
  4. Not startedBinary Search TreesLesson
  5. Not startedGraphs: BFS & DFSLesson
  6. Not startedSorting & Searching ImplementationsLesson
  7. Not startedDynamic Programming BasicsLesson
  8. Not startedCompetitive Programming TipsLesson

Module 19

Projects

7 lessons
  1. Not startedProject: Bank Management SystemProject
  2. Not startedProject: Student Records with STL & FilesProject
  3. Not startedProject: Library System with InheritanceProject
  4. Not startedProject: Expense Tracker with BudgetsProject
  5. Not startedProject: Tic-Tac-Toe with an Unbeatable AIProject
  6. Not startedProject: Build Your Own Generic ContainerProject
  7. Not startedProject: Multithreaded Task SchedulerProject

Module 20

Interview & Exam Practice

5 lessons
  1. Not startedC++ Output Prediction QuestionsLesson
  2. Not startedOOP Interview QuestionsLesson
  3. Not startedMemory & Pointer Interview QuestionsLesson
  4. Not startedSTL Coding Interview ProblemsLesson
  5. Not startedViva & Theory QuestionsLesson