{"id":20081996,"url":"https://github.com/exercism/cpp","last_synced_at":"2026-03-14T01:02:03.308Z","repository":{"id":15088102,"uuid":"17814605","full_name":"exercism/cpp","owner":"exercism","description":"Exercism exercises in C++.","archived":false,"fork":false,"pushed_at":"2024-05-16T19:22:18.000Z","size":1739,"stargazers_count":247,"open_issues_count":79,"forks_count":198,"subscribers_count":25,"default_branch":"main","last_synced_at":"2024-05-22T16:24:28.648Z","etag":null,"topics":["community-contributions-paused","exercism-track"],"latest_commit_sha":null,"homepage":"https://exercism.org/tracks/cpp","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exercism.png","metadata":{"funding":{"github":["exercism"],"custom":["https://exercism.org/donate"]},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-03-17T02:12:04.000Z","updated_at":"2024-05-28T17:13:24.532Z","dependencies_parsed_at":"2023-01-14T12:45:24.814Z","dependency_job_id":"4f37a4cb-198c-46a3-9156-b2c7a7ff71d9","html_url":"https://github.com/exercism/cpp","commit_stats":{"total_commits":763,"total_committers":115,"mean_commits":"6.6347826086956525","dds":0.8152031454783748,"last_synced_commit":"1fada1a2e134ccd5088717494be465b4ba7a403a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Fcpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Fcpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Fcpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Fcpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exercism","download_url":"https://codeload.github.com/exercism/cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246753338,"owners_count":20828134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["community-contributions-paused","exercism-track"],"created_at":"2024-11-13T15:41:19.831Z","updated_at":"2025-12-17T07:18:37.211Z","avatar_url":"https://github.com/exercism.png","language":"C++","funding_links":["https://github.com/sponsors/exercism","https://exercism.org/donate"],"categories":["exercism-track"],"sub_categories":[],"readme":"# Exercism C++ Track\n\nExercism Exercises in C++\n\n## Contributing Guide\n\nPlease see the [contributing guides](https://github.com/exercism/docs/tree/main/building/github)\n\nThe most useful way to start contributing to this track is to review Pull Requests and/or some of the open track issues.\nThere are not many active contributors, so anyone reviewing PRs or Issues, even just to +1 someone elses opinion, is appreciated.\n\n## Adding an exercise\n\nHere is a list of things that need to be done to add an exercise to this track.\n\n1. Add the exercise under the `exercises/` directory.\n2. Create your test suite based on the canonical tests in the [problem specifications](https://github.com/exercism/problem-specifications) repo, and add a comment at the top of the test suite noting the version of the test suite it implements.\n3. Create an example solution and name the files `example.cpp` and `example.h`. `example.cpp` is optional but encouraged.\n4. Add the test to the list in the root CMakeLists.txt file.\n5. Add the test to the config.json file. The [configlet](https://github.com/exercism/configlet) can help generate a unique UUID. You can download configlet using the script in `bin/fetch-configlet`.\n6. Add at least one topic for the exercise in the config.json file. Check the available topics in [TOPICS.txt](https://github.com/exercism/problem-specifications/blob/master/TOPICS.txt).\n7. Use the [configlet](https://github.com/exercism/configlet) tool to generate the README for your exercise.\n8. Try to match the formatting used in the other tests as closely as possible.\n\n## Testing an exercise\n\nThe Exercism build system has two unusual constraints. First, example solutions\nmust be named `example.h` and `example.cpp`; this prevents Exercism from sending\nthese files to the student. Second, student solutions must be named `\u003cexercise\u003e.h`\nand `\u003cexercise\u003e.cpp`, for example `anagram.h` and `anagram.cpp`.\n\nThe current CMake build system navigates this with an unusual approach: it copies\nall example solutions from the `exercises/` tree to an alternate directory\n(which is ignored by git), renames the solutions as if they were student exercises,\nand runs a complete build in this new directory.\n\nMaintainers can largely ignore the alternate exercise directory if they recopy\ntheir example solution before running a build. Re-running CMake will recopy\nall exercise files.\n\nFor example, a maintainer can copy, configure, compile, and test all exercises by\nrunning the following from the root directory:\n```bash\ncmake . \u0026\u0026 make\n```\n\nFor an individual exercise, in this example `anagram`, the maintainer should edit:\n```bash\nexercises/anagram/example.h\nexercises/anagram/example.cpp\nexercises/anagram/anagram_test.cpp\n```\n\nThen copy, configure, compile, and test with:\n```bash\ncmake . \u0026\u0026 make test_anagram\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexercism%2Fcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexercism%2Fcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexercism%2Fcpp/lists"}