Free · C++17
C++ Programming
Go from C++ syntax to object-oriented design, templates, the STL and modern C++ with smart pointers and lambdas.
- 40
- Tutorials
- 25
- Projects
- 225
- Practice MCQs
- 9 h
- Reading time
What you will learn
- Write idiomatic C++17 programs
- Design classes with constructors, destructors and encapsulation
- Apply inheritance, virtual functions and polymorphism
- Write generic code with templates
- Use STL containers, iterators and algorithms
- Manage resources with RAII and smart pointers
Syllabus
9 modules · 40 topics
What C++ is and how it relates to C, setting up a compiler, and the anatomy of a C++ program: headers, namespaces, streams and main.
C++ types and initialisation (including auto and brace initialisation), operators, decisions with if and switch, and loops including the range-based for.
Defining and calling functions, overloading, inline functions, default arguments, and references — C++'s safer alternative to pointers for passing arguments.
Raw pointers and dynamic memory with new/delete, built-in arrays versus std::array and std::vector, std::string, and structs in C++.
Defining classes, constructors and destructors, RAII, encapsulation with access specifiers and invariants, and abstraction through clean interfaces.
Deriving classes, compile-time and run-time polymorphism, overriding with override and final, how virtual functions work (vtables), and operator overloading.
Generic programming with function and class templates, error handling with exceptions, organising code with namespaces, and reading and writing files with fstream.
Containers (vector, list, stack, queue, map, set), iterators and algorithms — the reusable, efficient building blocks of modern C++ programs.
Lambda expressions, smart pointers for automatic memory management, and the core features of C++11–C++20 that define idiomatic modern C++.
Projects
All 25 projectsBank Account Manager
Open accounts, deposit, withdraw and transfer money through a command prompt — with exact cent arithmetic and per-account history.
BeginnerStudent Grade Tracker
Turn raw marks into a ranked report with averages, letter grades, class statistics, subject toppers and a grade histogram.
IntermediateLibrary Management System
Catalogue books, register members, lend and return copies with due dates, late fines, borrowing limits and a waiting list.
IntermediateCSV Sales Report Generator
Parse real-world CSV (quoted fields, embedded commas and quotes), validate every row, and produce grouped revenue reports with shares and trends.
AdvancedExpression Interpreter
A small programming language: lexer, recursive-descent parser, AST of unique_ptr nodes, variables, recursive user functions and errors that point at the exact column.
AdvancedRoute Planner (Graph Algorithms)
Model a road network as a weighted graph and answer real questions with Dijkstra, BFS, connected components and Kruskal's minimum spanning tree.