{"id":18627277,"url":"https://github.com/kazhuu/cpp-examples","last_synced_at":"2025-06-11T12:07:57.552Z","repository":{"id":119257503,"uuid":"189982300","full_name":"Kazhuu/cpp-examples","owner":"Kazhuu","description":"Me studying C++ and it's features","archived":false,"fork":false,"pushed_at":"2020-08-29T16:14:55.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T09:07:37.098Z","etag":null,"topics":["boost-library","cmake","cpp","examples","googletes","study"],"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/Kazhuu.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":"2019-06-03T10:13:34.000Z","updated_at":"2022-10-12T07:41:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bcf05e2-16e1-441d-8dc3-7efec7856f8e","html_url":"https://github.com/Kazhuu/cpp-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazhuu%2Fcpp-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazhuu%2Fcpp-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazhuu%2Fcpp-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazhuu%2Fcpp-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kazhuu","download_url":"https://codeload.github.com/Kazhuu/cpp-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kazhuu%2Fcpp-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259262622,"owners_count":22830560,"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":["boost-library","cmake","cpp","examples","googletes","study"],"created_at":"2024-11-07T04:41:46.666Z","updated_at":"2025-06-11T12:07:57.512Z","avatar_url":"https://github.com/Kazhuu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Examples\n\nShort code examples to cover different C++ language features for studying\npurposes. Examples are commented so someone can follow them and also origin\nof the example if exists is also given. This is helpful when some seeks original\nsource of the information.\n\n## Getting Started\n\n### Prerequisites\n\nYou will need a C++ compiler with C++17 support, CMake version 3.8 or greater\nfor generating a build files and Boost C++ library. One example shows how to use Google\nTest testing library to implement unit tests, thus that is also needed.\n\nTo install CMake you can either compile it yourself or install from APT\nrepository. To compiler it yourself follow [this](https://cmake.org/install/)\nguide. To install from APT run following\n```\nsudo apt install cmake\n```\nIf installing from APT repository make sure it's version is at least 3.8 or\ngreater. To check that run `cmake --version`.\n\nGoogle Test is included as a Git submodule and you need\nto initialize it after cloning because it is not automatically done for you. Do\nthis with following on root of the project\n```\ngit submodule init\ngit submodule update\n```\nTo install Boost library you can download it from\n[here](https://www.boost.org/users/download/) or on Ubuntu run\n```\nsudo apt-get install libboost-all-dev\n```\n\n### Compiling\n\nFirst make a build directory to root of the project, then cd into it\n\n```\nmkdir build\ncd build\n```\n\nThen use CMake to the generate your system's preferred build files\n\n```\ncmake ..\n```\n\nThen compile examples with\n\n```\ncmake --build .\n```\n\n## Running Examples\n\nAfter successful compile executables will be available under build folder in the\nsame folder structure as examples in `src` folder. For instance running ellipsis\nexample with following from a build directory\n\n```\n./src/ellipsis/ellipsis\n```\n\nStudy example's printing and source code what is happening. Source code is\nusually commented extensively to inform what is happening and what is being\ntested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazhuu%2Fcpp-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazhuu%2Fcpp-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazhuu%2Fcpp-examples/lists"}