Variables, references, pointers and vectors in C++ · a practice path
Seven sessions that build C++ skill from the first program to references, arrays, pointers and vectors, with a final program that analyzes a list of numbers. Every task has an output you can predict and check.
7 sessions. The worked example fills a pace and ticks the first 3, so you can see progress. Ticks and pace are saved on this device only.
Loading C++ Programming. If nothing appears, turn on JavaScript.
Academics · High SchoolOpen to everyone · no sign-in
C++ gives you control of memory, which also means you can write programs that misbehave. Predicting output before running keeps you honest about what each line does.
Sessions four and five put the two side by side so that the difference between changing a copy and changing the original becomes concrete.
The tasks are written for this page from the sources listed on it. The worked example is an invented pace. What you type and tick is saved only in this browser and is never sent to Caveat. Support: team@caveatacademic.com.