reference set · 10 worked programs

C++ programs for Computer Science / Applications students

Pick a program on the left. Its code loads straight into the compiler on the right, where you can run it, change it, and see the output — no setup required.

01–10 · click any program, or use the arrow, to load it
Now loaded: —
Starting the compiler…
editor — edit freely, then run
output
Output appears here after you run a program.