{"id":17857828,"url":"https://github.com/mathusanm6/cpp-primer-training","last_synced_at":"2025-08-23T01:04:58.596Z","repository":{"id":259728524,"uuid":"879295510","full_name":"mathusanm6/Cpp-Primer-Training","owner":"mathusanm6","description":"Learning C++ with C++ Primer Book","archived":false,"fork":false,"pushed_at":"2024-11-01T11:22:41.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T18:37:14.492Z","etag":null,"topics":["clang","cpp","cpp17","cppprimer"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathusanm6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-10-27T14:35:47.000Z","updated_at":"2024-11-01T11:22:45.000Z","dependencies_parsed_at":"2024-12-15T12:11:33.435Z","dependency_job_id":"babdb2f3-30df-46b5-a365-f14e58ee7046","html_url":"https://github.com/mathusanm6/Cpp-Primer-Training","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"75a35acafeba718a5a215917a2d58c50e5372b6a"},"previous_names":["mathusanm6/cpp-primer-training"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mathusanm6/Cpp-Primer-Training","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathusanm6%2FCpp-Primer-Training","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathusanm6%2FCpp-Primer-Training/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathusanm6%2FCpp-Primer-Training/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathusanm6%2FCpp-Primer-Training/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathusanm6","download_url":"https://codeload.github.com/mathusanm6/Cpp-Primer-Training/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathusanm6%2FCpp-Primer-Training/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271727460,"owners_count":24810561,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"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":["clang","cpp","cpp17","cppprimer"],"created_at":"2024-10-28T04:04:05.102Z","updated_at":"2025-08-23T01:04:58.352Z","avatar_url":"https://github.com/mathusanm6.png","language":"C++","readme":"# C++ Primer Training Project\n\nThis repository contains C++ code samples that I wrote while working through the _C++ Primer_ book. Each example represents a concept or experiment as I test and learn different features in C++. The code is structured in chapters and sections, and I’ve implemented a Makefile to simplify building and running each example.\n\n### Prerequisites\n\n- **Compiler**: This project uses `clang++` as the C++ compiler, compatible with C++17 standard.\n- **Environment**: macOS with an ARM chip.\n- **Tools**: `Make` for build automation.\n\n### Project Structure\n\n- **Source Code**: All source files are organized under the `src/` directory. Code is organized by chapter, section, and optional subsections, mirroring the structure of the book.\n- **Build Directory**: Compiled binaries are saved in the `build/` directory, preserving the chapter and section structure.\n\n```\nsrc/\n├── chapter1/\n│   ├── section1/\n│   │   └── main.cpp\n│   ├── section2/\n│   └── ...\n└── chapter2/\n    └── section1/\nbuild/\n├── chapter1/\n│   ├── section1/\n│   │   └── main\n│   ├── section2/\n│   └── ...\n└── chapter2/\n    └── section1/\n```\n\n### Building the Project\n\nTo compile all examples in the project, simply run:\n\n```bash\nmake\n```\n\nThis will find all `main.cpp` files in the `src/` directory and compile them into corresponding binaries in the `build/` directory.\n\n### Running a Specific Example\n\nTo run a specific example, use the `make run` command with `chapter` and `section` parameters. Optionally, you can add a `subsection` parameter if the code is nested further. You can also specify optional input and output files to feed input or redirect output as needed.\n\n```bash\nmake run chapter=\u003cchapter\u003e section=\u003csection\u003e [subsection=\u003csubsection\u003e] \u003c input_file \u003e output_file\n```\n\nFor example, to run the code in `src/chapter1/section1/main.cpp`:\n\n```bash\nmake run chapter=chapter1 section=section1\n```\n\nIf there’s a subsection, specify it as well:\n\n```bash\nmake run chapter=chapter1 section=section1 subsection=subsection1\n```\n\nYou can also provide an input file and/or an output file to redirect the program’s input and output:\n\n```bash\nmake run chapter=chapter1 section=section1 \u003c data.txt \u003e result.txt\n```\n\n### Cleaning Up\n\nTo remove all compiled binaries, run:\n\n```bash\nmake clean\n```\n\nThis will delete the `build/` directory and all its contents.\n\n### Notes\n\n- This project is purely for my learning and understanding as I work through the _C++ Primer_ book. It is not intended for collaborative development.\n- The code here serves as a reference for testing different approaches and outcomes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathusanm6%2Fcpp-primer-training","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathusanm6%2Fcpp-primer-training","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathusanm6%2Fcpp-primer-training/lists"}