π CPP00 β CPP04
This repository contains my solutions for the C++ modules 00 to 04 from the 42 Network curriculum.
π― Objective
The goal of these modules is to learn the fundamentals of C++ programming, including:
Object-Oriented Programming (OOP) Classes and objects Encapsulation Inheritance Polymorphism Memory management Operator overloading Abstract classes and interfaces
π Structure
Each module is organized in its own folder:
CPP00/ CPP01/ CPP02/ CPP03/ CPP04/
Each folder contains:
Exercises (ex00, ex01, etc.) Source files (.cpp, .hpp) Makefile (for compilation) π οΈ Compilation
To compile any exercise:
make
To clean compiled files:
make clean
To remove everything:
make fclean π How to Run
After compiling:
./program_name π§ Topics Covered
π¦ CPP00
Namespaces Classes and objects Member functions this pointer Streams (iostream)
π¦ CPP01
Memory allocation (new / delete) References Pointers File streams
π¦ CPP02
Orthodox Canonical Form Operator overloading Fixed-point numbers
π¦ CPP03
Inheritance Virtual functions Multiple inheritance
π¦ CPP04
Polymorphism Abstract classes Interfaces Deep vs shallow copy
π§© Skills Gained Strong understanding of C++ OOP principles Writing clean and modular code Managing memory safely Understanding class relationships Improving problem-solving skills
π©βπ» Author
somaya-Hassoune
Student at 1337 (42 Network)
π Notes This project follows the 42 Norm. Code is written in C++98 standard. No STL (depending on the module requirements). Focus on learning and understanding concepts.
β Feel free to explore the code and learn from it!