Skip to content

leissa/cpplings

Repository files navigation

cpplings

                                     _/  _/
        _/_/_/  _/_/_/    _/_/_/    _/      _/_/_/      _/_/_/    _/_/_/
     _/        _/    _/  _/    _/  _/  _/  _/    _/  _/    _/  _/_/
    _/        _/    _/  _/    _/  _/  _/  _/    _/  _/    _/      _/_/
     _/_/_/  _/_/_/    _/_/_/    _/  _/  _/    _/    _/_/_/  _/_/_/
            _/        _/                                _/
           _/        _/                            _/_/

Standard License Download

Rustlings-style exercises for C++ using:

Install

curl -fsSL https://raw.githubusercontent.com/leissa/cpplings/refs/heads/master/tools/install.sh | bash

Start

cd cpplings
./cpplings

Usage

usage: cpplings [-h] {list,run,verify,watch,watch-all} ...

positional arguments:
  {list,run,verify,watch,watch-all}
    list                List available exercises
    run                 Run a specific exercise
    verify              Verify all exercises
    watch               Watch a specific exercise
    watch-all           Watch all exercises (default)

options:
  -h, --help            show this help message and exit

Final project: a ray tracer

The course concludes with a ray tracer (exercises/05_capstone/P4_raytracer.cpp). It renders 3D scenes of spheres and triangles into a PNG image, with Phong lighting, shadows and mirror reflections — pulling together classes, overloaded operators, inheritance with virtual methods, std::optional, std::unique_ptr and std::vector. See exercises/05_capstone/README.md for details.

cornell spheres mirrors
cornell.txt spheres.txt mirrors.txt
pyramid example test
pyramid.txt example.txt test.txt

Credits

This tool follows the Modern C++ Programming course by Federico Busato.

About

Rustlings-style exercises for C++

Topics

Resources

License

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors