Welcome to my repository for the CPP modules from 42 School! This repository aims to provide well-documented and comprehensive solutions for the CPP exercises, serving as a valuable reference for other students and developers.
This repository contains solutions and explanations for the CPP modules from 42 School. Each module focuses on different aspects of C programming, providing a well-rounded understanding of the language. Whether you're a fellow 42 student or a C enthusiast, you'll find detailed code examples and explanations to help you grasp complex concepts.
- CPP Module 00 - Introduction to C and basic syntax
- CPP Module 01 - Memory allocation, references, and pointers
- CPP Module 02 - Ad-hoc polymorphism, operator overloading, and canonical classes
- CPP Module 03 - Inheritance
- CPP Module 04 - Subtype polymorphism, abstract classes, and interfaces
- CPP Module 05 - Repetition and exception handling
- CPP Module 06 - C casts
- CPP Module 07 - C templates
- CPP Module 08 - Templated containers, iterators, and algorithms
To use the solutions in this repository:
-
Clone the repository
git clone https://github.com/bonsthie/cpp.git cd cpp
-
Navigate to the desired module directory
cd module_directory
-
Compile and run the code Each module contains a
Makefile
for compiling the code. Use the following commands to compile and run the executable:make ./executable_name