The in-class activities for CS106L at Stanford. Each day is a short mission you work through during lecture, and the C++ you write is compiled and run right here in your browser.
Sign in to get credit. Signing in is how your progress is recorded and how your work counts — it also carries your progress between devices.
- Day 2Optional activityTypesBuild a hand of cards while practicing today's concepts!
- Day 3ActivityInitialization and ReferencesGive variables their first values three ways, catch narrowing with braces, and change the real thing with references.
- Day 4ActivityStreamsSix focused exercises covering the core C++ stream topics.
- Day 5ActivityContainersLap times, team sponsors, and the containers that hold them.
- Day 6ActivityIterators and PointersFive multiple-choice questions and two short coding activities on iterators and pointers.
- Day 7ActivityClassesRun a building's elevators while practicing classes and inheritance!
- Day 9ActivityThe C++ Template FactoryFive factory-themed challenges: stamp out typed products from a template blueprint, implement a storage bin, and enforce read-only factory access with const correctness.