Syllabus

  1. 01Hello, C++Write your first C++ program, print text with std::cout, add comments, and learn how a compiler turns source code into a program you can run.5 lessons
    1. 01Your First C++ Program
    2. 02Printing with std::cout
    3. 03Comments
    4. 04Compiling and Running
    5. 05Quiz: Hello, C++
  2. 02Variables and TypesStore values in typed variables, use int, double, char, bool and std::string, do arithmetic, convert between types, and read input with std::cin.6 lessons
    1. 01Declaring Variables
    2. 02The Basic Types
    3. 03Arithmetic and Assignment
    4. 04Conversions, auto and const
    5. 05Reading Input with std::cin
    6. 06Quiz: Variables and Types
  3. 03Conditionals and LogicMake your programs choose. Compare values, branch with if, else if and else, pick between cases with switch, and combine conditions with logical operators.7 lessons
    1. 01If Statements
    2. 02Else and Else If
    3. 03Switch Statements
    4. 04Logical Operators
    5. 05The Conditional Operator
    6. 06Project: Parking Fee
    7. 07Quiz: Conditionals and Logic
  4. 04Loops and ErrorsRepeat work with while, do-while and for loops, steer them with break and continue, and learn to recognize compile-time, link-time, runtime and logic errors.7 lessons
    1. 01While Loops
    2. 02For Loops
    3. 03Break and Continue
    4. 04Kinds of Errors
    5. 05Fix One Bug of Each Kind
    6. 06Project: Savings Plan
    7. 07Quiz: Loops and Errors
  5. 05Vectors and ArraysKeep lists of values in std::vector: create, grow and shrink them, loop over their elements, use standard algorithms on them, and see how they compare with built-in arrays and std::array.7 lessons
    1. 01Creating Vectors
    2. 02Adding and Removing Elements
    3. 03Looping Over Vectors
    4. 04Standard Algorithms
    5. 05Built-in Arrays and std::array
    6. 06Random Numbers
    7. 07Quiz: Vectors and Arrays
  6. 06FunctionsPackage code into reusable functions. Pass parameters and return results, declare functions before use and split them across files, understand scope, and make functions flexible with default arguments, overloading and templates.7 lessons
    1. 01Defining and Calling Functions
    2. 02Parameters and Return Values
    3. 03Declarations and Multiple Files
    4. 04Scope
    5. 05Default Arguments and Overloading
    6. 06Function Templates
    7. 07Quiz: Functions
  7. 07Classes and ObjectsCreate your own types with classes. Give them data members and member functions, protect their data with access specifiers, set them up with constructors, clean up with destructors, and split declarations from definitions.6 lessons
    1. 01Classes and Members
    2. 02Public and Private
    3. 03Constructors
    4. 04Destructors and Object Lifetime
    5. 05Member Functions Outside the Class
    6. 06Quiz: Classes and Objects
  8. 08References and PointersWork directly with memory. Create references and pass arguments by reference, take addresses and dereference pointers, avoid null and dangling pointers, and manage dynamic memory with new, delete and smart pointers.6 lessons
    1. 01References
    2. 02Passing by Reference
    3. 03Pointers
    4. 04Null and Dangling Pointers
    5. 05Dynamic Memory and Smart Pointers
    6. 06Quiz: References and Pointers