← Courses
LANG CPP · 3 credits
Course Outline
C++: Beginner to Advanced
C++ from zero for programmers who know Python basics. Learn the compile-run mental model, static types, control flow, functions, pointers and references from first principles, stack vs heap and RAII, classes, and the STL (vector, string, map, set, algorithms), finishing with the fast-IO idioms that make C++ the systems, performance, and interview language.
What you will learn
- ✓Compile and run C++ programs, and explain what the compiler does that Python's interpreter does not
- ✓Use static types, const, and casts deliberately instead of fighting the type system
- ✓Explain pointers, references, stack vs heap, and why modern C++ prefers RAII over new/delete
- ✓Write classes with constructors, destructors, and encapsulation
- ✓Solve problems with the STL: vector, string, map, set, pair, and the core algorithms
- ✓Write interview-ready C++ with fast IO and the common DSA idioms
Course outline
Unit 1Hello, C++
- 1-1From Python to C++: Your First Program3 checks · 10 min
- 1-2Printing with cout, Reading with cin4 checks · 9 min
- 1-3Static Types: The Compiler Checks Your Work3 checks · 10 min
Unit 2Variables, Types, and Operators
- 2-1The Core Types and const4 checks · 12 min
- 2-2Arithmetic, Integer Division, and Casting4 checks · 11 min
Unit 3Control Flow
- 3-1if, else, and Comparisons4 checks · 9 min
- 3-2switch: Choosing Among Fixed Cases3 checks · 9 min
- 3-3Loops: while and for4 checks · 13 min
Unit 4Functions
- 4-1Defining Functions and Prototypes3 checks · 10 min
- 4-2Pass by Value vs Pass by Reference3 checks · 11 min
- 4-3Overloading and Default Arguments3 checks · 9 min
- 4-4Recursion and the Call Stack3 checks · 11 min
Unit 5Pointers and References from First Principles
- 5-1Addresses and Pointers4 checks · 13 min
- 5-2Arrays, Pointer Arithmetic, and References vs Pointers4 checks · 12 min
Unit 6Memory and RAII
- 6-1Stack vs Heap, new and delete5 checks · 12 min
- 6-2RAII: Why Modern C++ Rarely Writes delete3 checks · 11 min
Unit 7Classes
- 7-1structs, Classes, and Constructors5 checks · 12 min
- 7-2Encapsulation, const Methods, and Destructors3 checks · 11 min
- 7-3Operator Basics: Making Your Types Feel Native3 checks · 10 min
Unit 8The STL I: vector and string
- 8-1std::vector: The Array Done Right4 checks · 14 min
- 8-2std::string, Deeply4 checks · 12 min
- 8-3Iteration Patterns: Range-for, auto, and Iterators4 checks · 11 min
- 8-4Big-O: How Engineers Talk About Speed3 checks · 12 min
Unit 9The STL II: Maps, Sets, and Algorithms
- 9-1pair, map, and unordered_map5 checks · 13 min
- 9-2set, sort, and the Algorithm Library4 checks · 14 min
Unit 10DSA-Ready C++: The Capstone
- 10-1Fast IO and the Contest Template4 checks · 10 min
- 10-2Interview Idiom Drills4 checks · 14 min
Practice while you learn
Use Hack University's public online code editor when you want to run code online before committing to the full curriculum. The browser compilers are free for quick syntax checks, exercises, and interview practice in an isolated sandbox environment.