{"id":27942142,"url":"https://github.com/pranabdas/c-cpp","last_synced_at":"2025-05-07T11:26:34.587Z","repository":{"id":57922138,"uuid":"521689889","full_name":"pranabdas/c-cpp","owner":"pranabdas","description":"Learning programming concepts in C and C++","archived":false,"fork":false,"pushed_at":"2025-04-13T02:53:57.000Z","size":50559,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-13T03:25:44.808Z","etag":null,"topics":["algorithms","c","cpp","data-structures","programming","tutorial"],"latest_commit_sha":null,"homepage":"https://pranabdas.github.io/c-cpp/","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/pranabdas.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,"zenodo":null}},"created_at":"2022-08-05T15:32:58.000Z","updated_at":"2025-04-13T02:53:18.000Z","dependencies_parsed_at":"2024-10-28T01:42:02.395Z","dependency_job_id":"5a6ca902-e780-41a1-9cab-c141d4286ed7","html_url":"https://github.com/pranabdas/c-cpp","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/pranabdas%2Fc-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranabdas%2Fc-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranabdas%2Fc-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranabdas%2Fc-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranabdas","download_url":"https://codeload.github.com/pranabdas/c-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252867585,"owners_count":21816703,"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":["algorithms","c","cpp","data-structures","programming","tutorial"],"created_at":"2025-05-07T11:26:34.010Z","updated_at":"2025-05-07T11:26:34.576Z","avatar_url":"https://github.com/pranabdas.png","language":"C++","readme":"\u003ch1 align=\"center\"\u003eProgramming in C and C++\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pranabdas/c-cpp/actions/workflows/deploy-gh-pages.yml\"\u003e\u003cimg src=\"https://github.com/pranabdas/c-cpp/actions/workflows/deploy-gh-pages.yml/badge.svg\" alt=\"Deploy gh-pages status\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nFollow the tutorial here - \u003chttps://pranabdas.github.io/c-cpp/\u003e\n\n## Quick start\n\nCompile:\n```console\ngcc filename.c\n\n# linking math lib\ngcc filename.c -lm\n\n# show all compiler warnings\ngcc -Wall filename.c\n\ng++ filename.cpp\n\n# specify certain standard\ng++ -std=c++17 filename.cpp\n```\n\nThis would produce executable with default name `a.out`. You can specify the\nexecutable name by using the `-o` flag:\n```console\ngcc filename.c -o program_name\n```\n\nFor complex programs, you can use `-g` (or `-g3`) flag to embed debugging\ninformation. `-O` flag can be used to optimize the executable file (`-O2`, `-O3`\ndenotes various levels of optimization).\n\nCompiler (GCC/Clang) flags for warnings: `-Wall`, `-Wextra`, `-Wpedantic`,\n`-Wunused`.\n\n## Tools\n\n### Cppcheck\n\n```console\napt install cppcheck\ncppcheck --enable=all filename.cpp\n```\n\n### Misc\nCleanup (delete) all `a.out` from the `src` directory:\n```\nfind /workspaces/c-cpp/src -type f -name a.out -delete\n```\n\n## Resources\n- \u003chttps://git.savannah.nongnu.org/cgit/c-intro-and-ref.git\u003e\n- \u003chttps://www.gnu.org/software/libc/manual/html_node/index.html\u003e\n- \u003chttps://developers.google.com/edu/c++/cpp-in-depth\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranabdas%2Fc-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranabdas%2Fc-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranabdas%2Fc-cpp/lists"}