{"id":51890878,"url":"https://github.com/diniremix/cpp-examples","last_synced_at":"2026-07-26T03:30:40.885Z","repository":{"id":369365667,"uuid":"1264183192","full_name":"diniremix/cpp-examples","owner":"diniremix","description":"Simple exercises for learning modern C++ [C++ 20 and up](https://isocpp.org/).","archived":false,"fork":false,"pushed_at":"2026-07-04T22:16:06.000Z","size":233,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-05T00:08:43.076Z","etag":null,"topics":["beginner-friendly","c-plus-plus","cpp","cpp20","cpp23","exercises"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diniremix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-09T16:32:25.000Z","updated_at":"2026-07-04T22:16:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/diniremix/cpp-examples","commit_stats":null,"previous_names":["diniremix/cpp-examples"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/diniremix/cpp-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniremix%2Fcpp-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniremix%2Fcpp-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniremix%2Fcpp-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniremix%2Fcpp-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diniremix","download_url":"https://codeload.github.com/diniremix/cpp-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniremix%2Fcpp-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35899882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-26T02:00:06.503Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beginner-friendly","c-plus-plus","cpp","cpp20","cpp23","exercises"],"created_at":"2026-07-26T03:30:40.277Z","updated_at":"2026-07-26T03:30:40.879Z","avatar_url":"https://github.com/diniremix.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# CPP exercises\n\nSimple exercises for learning modern C++ ([C++ 20 and above](https://isocpp.org/)).\n\n\n## Requirements\n\n - [GCC](https://gcc.gnu.org/) **13.3.x** and above\n - [vcpkg](https://vcpkg.io/en/) **2026-05-27** and above\n - [Cmake](https://cmake.org/download/) **3.28.x** and above\n - [Ninja](https://ninja-build.org/) **1.11.x** and above\n\n## Recommended tools\n - [xmake](https://xmake.io/) **3.0.6.x** and above\n - [just](https://github.com/casey/just) **1.47.x** and above\n - [clang-format](https://clang.llvm.org/docs/ClangFormat.html)\n - [clang-tidy](https://clang.llvm.org/extra/clang-tidy/)\n - [clangd (lsp)](https://clangd.llvm.org/)\n\n\n## Getting Started\n\n### Clone the repo and make it yours:\n\n```bash\n$ git clone git@github.com:diniremix/cpp-examples.git\n```\n\n```bash\n$ cd cpp-examples\n```\n\n### Install dependencies\n```bash\n$ vcpkg install\n```\n\n### Configure\n```bash\n$ just configure\n# cmake --preset debug\n```\n\n### Build\n```bash\n$ just build\n# cmake --build --preset debug -j\n```\n\n### Run exercise\n```bash\n$ just ex EXERCISE_NAME\n# cmake --build --preset debug --target EXERCISE_NAME -j\n# ./build/debug/EXERCISE_NAME\n```\n\n\n## Tutorials\n\ncreate a new example:\n ```bash\n $ just new EXERCISE_NAME\n ```\n \n Then add the following line to `cmake/Exercises.cmake`:\n  ```cmake\n add_exercise(EXERCISE_NAME)\n ```\n \n Finally, run:\n  ```bash\n $ just ex EXERCISE_NAME\n ```\n\n\n##  tested on\n\n|         O.S.         |       compiler               |\n| -------------------- | ---------------------------- |\n| Ubuntu 24.04         |   (GCC 13.3.0)               |\n| Fedora 44            |   (GCC 16.1.1)               |\n| Windows 11           |   (MSVC 19.44.35226 for x64) |\n\n\n## License\n\n**CPP examples** is licensed under either of the following licenses, at your option:\n\n- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or [http://www.apache.org/licenses/LICENSE-2.0])\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or [http://opensource.org/licenses/MIT])\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiniremix%2Fcpp-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiniremix%2Fcpp-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiniremix%2Fcpp-examples/lists"}