C+

Examples

Real programs, end to end

Complete C+ programs you can build and run yourself. Each one ships the full source, an explanation of how it works, the numbers it produces, and the exact steps to reproduce them.

Ray tracer

Graphics

A complete path tracer in one C+ file: 10 spheres with Lambertian, metal, and dielectric materials, rendered to a PPM image. Full source, a walkthrough, the numbers it produces, and how to reproduce them.