{"id":24629649,"url":"https://github.com/princebansal7/c-cpp-logic-building","last_synced_at":"2025-10-19T12:11:03.254Z","repository":{"id":60802375,"uuid":"524659866","full_name":"princebansal7/C-CPP-Logic-Building","owner":"princebansal7","description":"This Repo contains the codes from scratch to learn C, C++ (STL) \u0026 Object Oriented Programming ","archived":false,"fork":false,"pushed_at":"2024-08-18T12:24:06.000Z","size":213,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-18T13:35:42.148Z","etag":null,"topics":["c","c-plus-plus","object-oriented-programming","standard-template-library","stl"],"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/princebansal7.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":"2022-08-14T12:06:00.000Z","updated_at":"2024-08-18T13:35:45.853Z","dependencies_parsed_at":"2023-10-15T16:36:39.846Z","dependency_job_id":"c2835dad-4f27-43ea-823c-b6a16ac8ed1c","html_url":"https://github.com/princebansal7/C-CPP-Logic-Building","commit_stats":null,"previous_names":["princebansal7/c-cpp-logic-building"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princebansal7%2FC-CPP-Logic-Building","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princebansal7%2FC-CPP-Logic-Building/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princebansal7%2FC-CPP-Logic-Building/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princebansal7%2FC-CPP-Logic-Building/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princebansal7","download_url":"https://codeload.github.com/princebansal7/C-CPP-Logic-Building/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235542223,"owners_count":19006826,"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":["c","c-plus-plus","object-oriented-programming","standard-template-library","stl"],"created_at":"2025-01-25T06:13:32.667Z","updated_at":"2025-10-06T19:31:20.396Z","avatar_url":"https://github.com/princebansal7.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learn C, C++, OOP \u0026 DSA\n\n#### 1. Why this Repository ?\n\n- To strengthen the basics of **C, C++ \u0026 Object oriented paradigms** concepts.\n- Follow sequential manner to get the gist of *\"How to build logics\"*\n- C Language | [Link](https://github.com/princebansal7/C-CPP-Logic-Building/tree/main/C-Language)\n- C++ Language with Object Oriented Concepts | [Link](https://github.com/princebansal7/C-CPP-Logic-Building/tree/main/CPP-Language-OOP)\n\n#### 2. Additional Links\n\n- DSA using Object Oriented Paradigms (OOP) \u0026 concepts | [Link](https://github.com/princebansal7/DSA-Sheets-Code/tree/main/DSA-Object-Oriented-Style)\n- TCS NQT Sheet (Great for basic logic building) | [Link](https://github.com/princebansal7/DSA-Sheets-Code/tree/main/TCS-NQT-Sheet)\n- 180 SDE Sheet | [Link](https://github.com/princebansal7/DSA-Sheets-Code/tree/main/180-SDE-Sheet)\n- 450 Sheet | [Link](https://github.com/princebansal7/DSA-Sheets-Code/tree/main/450-DSA-Sheet)\n- A2Z Sheet | [Link](https://github.com/princebansal7/DSA-Sheets-Code/tree/main/A2Z-Sheet)\n- CodeHelp YT | [Link](https://github.com/princebansal7/DSA-Sheets-Code/tree/main/Codehelp-Youtube)\n- DSA Complete Repo | [Link](https://github.com/princebansal7/DSA-Sheets-Code)\n\n#### 3. VsCode **Code-Runner** extension settings to automatically removes binary files like: `.exe` or `.out`\n\n  - for Windows\n\n    ```JSON\n    \"code-runner.executorMap\": {\n      \"c\": \"cd $dir \u0026\u0026 gcc $fileName -o $fileNameWithoutExt -lm \u0026\u0026 $fileNameWithoutExt.exe \u0026\u0026 del $fileNameWithoutExt.exe\",\n      \"cpp\": \"cd $dir \u0026\u0026 g++ $fileName -o $fileNameWithoutExt -lm \u0026\u0026 $fileNameWithoutExt.exe \u0026\u0026 del $fileNameWithoutExt.exe\"\n    },\n    ```\n  - for Mac/Linux\n   \n    ```JSON\n    \"code-runner.executorMap\": {\n      \"c\": \"cd $dir \u0026\u0026 gcc $fileName -o $fileNameWithoutExt -lm \u0026\u0026 $dir$fileNameWithoutExt \u0026\u0026 rm $dir$fileNameWithoutExt\",\n      \"cpp\":\"cd $dir \u0026\u0026 g++ $fileName -o $fileNameWithoutExt -lm \u0026\u0026 ./$fileNameWithoutExt \u0026\u0026 rm ./$fileNameWithoutExt\",\n    },\n    ```\n    Note: You can customize these settings as per your own need, my personalized configuration is:\n    \n    ```JSON\n    \"code-runner.executorMap\": {\n      \"java\": \"cd $dir \u0026\u0026 javac $fileName \u0026\u0026 java $fileNameWithoutExt \u0026\u0026 rm $fileNameWithoutExt.class\",\n      \"c\": \"cd $dir \u0026\u0026 gcc-13 $fileName -o $fileNameWithoutExt -lm \u0026\u0026 $dir$fileNameWithoutExt \u0026\u0026 rm $dir$fileNameWithoutExt\",\n      \"cpp\":\"cd $dir \u0026\u0026 g++-13 -std=c++17 $fileName -o $fileNameWithoutExt -lm \u0026\u0026 ./$fileNameWithoutExt \u0026\u0026 rm ./$fileNameWithoutExt\",\n      \"python\": \"python3 -u\",\n    },\n    ```\n\n#### 4. **Fixes \u0026 Things worth knowing:** \n\n- **`\u003cmath.h\u003e` in VsCode fixed:** if **math.h** isn't working in your VsCode, use -lm flag in execution command to link 'math' library.\n    \n     ```bash\n        gcc test.c -lm\n            or\n        gcc test.c -o test -lm\n     ```\n- Alternatively use **`\u003ccmath\u003e`** header file in **C++** programs then you won't need -lm flag.\n- Use `\u003ccstring\u003e` header file instead of `\u003cstring.h\u003e` to use C style pre-defined string functions like: `strupr()`, `strcpy()`, `strcat()` etc in C++ programs.\n- `cout` is object of `ostream` class, and `\u003c\u003c` is **Insertion operator**.\n- `cin` is object of `istream` class, and `\u003e\u003e` is **Extraction operator**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincebansal7%2Fc-cpp-logic-building","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprincebansal7%2Fc-cpp-logic-building","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincebansal7%2Fc-cpp-logic-building/lists"}