C++ for Programmers
A fast-paced tour of C++ for people who already program in another language: compilation, syntax and types, references and pointers, control flow, functions and lambdas, classes with inheritance and polymorphism, and the standard containers.
- Intermediate level
- 6 modules
- 32 lessons
- 131 tasks and questions
Syllabus
01Getting Started with C++Where C++ fits among languages you may know, the conventions C++ code follows, and how source files become executables.4 lessons
02Basic SyntaxThe essentials of C++ syntax for experienced programmers: program structure and I/O, types and initialization, std::string, operators, references and pointers, and a coin-counting project.7 lessons
03Control FlowBranching and looping in C++: if with initializers, switch and its fall-through rules, the conditional operator, every loop form including range-based for, break and continue, seeded random numbers, and a lookup-table project.6 lessons
04FunctionsDeclare and define functions, choose how parameters are passed, use default arguments and overloading, write lambdas that capture state, and read command-line arguments.5 lessons
05Object-Oriented ProgrammingClasses in C++: members and access specifiers, constructors, destructors and RAII, the rules of copying, inheritance, and runtime polymorphism with virtual functions.5 lessons
06Built-In Data StructuresThe standard library containers you'll use daily: std::array and std::vector, stacks, queues and priority queues, ordered and unordered sets, and ordered and hash maps, with the algorithms that work on them.5 lessons