{"id":25683430,"url":"https://github.com/ejarvinen/42cpp_modules","last_synced_at":"2025-06-26T20:32:37.532Z","repository":{"id":271355999,"uuid":"866424917","full_name":"ejarvinen/42CPP_Modules","owner":"ejarvinen","description":"Collection of 10 modules of C++ basics","archived":false,"fork":false,"pushed_at":"2025-01-31T17:02:32.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T16:56:34.893Z","etag":null,"topics":["abstract-classes","casting-to-types","dynamic-memory-allocation","inheritance","iterator","polymorphism","stl-algorithms","stl-containers","templates"],"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/ejarvinen.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-02T08:31:22.000Z","updated_at":"2025-01-31T17:02:35.000Z","dependencies_parsed_at":"2025-02-24T17:03:14.835Z","dependency_job_id":null,"html_url":"https://github.com/ejarvinen/42CPP_Modules","commit_stats":null,"previous_names":["ejarvinen/42cpp_modules"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ejarvinen/42CPP_Modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42CPP_Modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42CPP_Modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42CPP_Modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42CPP_Modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejarvinen","download_url":"https://codeload.github.com/ejarvinen/42CPP_Modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejarvinen%2F42CPP_Modules/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262139595,"owners_count":23265184,"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":["abstract-classes","casting-to-types","dynamic-memory-allocation","inheritance","iterator","polymorphism","stl-algorithms","stl-containers","templates"],"created_at":"2025-02-24T16:51:47.526Z","updated_at":"2025-06-26T20:32:37.433Z","avatar_url":"https://github.com/ejarvinen.png","language":"C++","readme":"# 42CPP_Modules\n## Overview\nThis repository contains solutions for the **42 School Curriculum C++ Modules**, a structured learning path designed to introduce and develop proficiency in **Object-Oriented Programming (OOP)** with C++. Each module focuses on a specific aspect of the language, gradually increasing in complexity and introducing key programming paradigms such as memory management, polymorphism, and the Standard Template Library (STL).\n\n## Table of Contents\n1. **Module 00** - Basics: Namespaces, Classes, Member Functions, Static, Const\n2. **Module 01** - Memory Allocation, Pointers, References, Switch Statements\n3. **Module 02** - Ad-hoc Polymorphism, Operator Overloading, Canonical Form\n4. **Module 03** - Inheritance\n5. **Module 04** - Subtype Polymorphism, Abstract Classes, Interfaces\n6. **Module 05** - Exceptions and Repetition\n7. **Module 06** - Type Conversions and Casting\n8. **Module 07** - C++ Templates\n9. **Module 08** - STL, Iterators, and Algorithms\n10. **Module 09** - Advanced STL Operations\n\n## General Guidelines\n- **C++ Standard**: All projects comply with C++11 or higher.\n- **Compilation**:\n  - Uses `c++` with `-Wall -Wextra -Werror` flags.\n- **Code Structure**:\n  - Class names follow `UpperCamelCase` convention.\n  - Header files (`.hpp`) include necessary dependencies and include guards.\n- **Memory Management**:\n  - Properly allocates and frees heap memory.\n  - Prevents memory leaks.\n- **Error Handling**:\n  - Implements exceptions where necessary.\n  - Ensure robust input validation.\n\n## Installation and Compilation\nClone the repository and navigate to the desired module:\n```\ngit clone https://github.com/ejarvinen/42CPP_Modules.git\ncd 42CPP_Modules/CPPXX/ex0X\nmake\n```\nExecute the compiled program:\n```\n./program-name\n```\n## Modules Overview\n### Module 00 - Basics\n- Introduction to C++ syntax and fundamental concepts.\n- Implementing classes, member functions, and simple I/O operations.\n\n### Module 01 - Memory Management\n- Dynamic memory allocation and deallocation.\n- Understanding pointers and references.\n\n### Module 02 - Operator Overloading \u0026 Polymorphism\n- Overloading operators.\n- Implementing the Orthodox Canonical Class Form.\n\n### Module 03 - Inheritance\n- Implementing and extending base classes.\n- Exploring derived class behaviors.\n\n### Module 04 - Abstract Classes and Interfaces\n- Understanding pure virtual functions.\n- Implementing abstract base classes.\n\n### Module 05 - Exceptions\n- Handling errors using exception classes.\n- Implementing `try`, `catch`, and `throw`.\n\n### Module 06 - Type Conversions\n- Implementing explicit and implicit type casting.\n- Understanding `static_cast`, `dynamic_cast`, `reinterpret_cast`, and `const_cast`.\n\n### Module 07 - Templates\n- Implementing function and class templates.\n- Utilizing generic programming for flexibility.\n\n### Module 08 - STL Containers \u0026 Iterators\n- Introduction to STL containers (`vector`, `list`, `map`).\n- Implementing iterators and algorithmic functions.\n\n### Module 09 - Advanced STL Usage\n- More complex STL operations.\n- Optimizing container performance and efficiency.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejarvinen%2F42cpp_modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejarvinen%2F42cpp_modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejarvinen%2F42cpp_modules/lists"}