This repository contains all the C++ piscine-like projects of rank 04 and rank 05. The goal of these projects is to learn the basics of C++ and Object Oriented Programming (OOP).
At 42, the C projects are built following a bunch of rules that enforce good coding style. Some of them are:
- No for, do while, switch, case or goto are allowed
- No more than 25 lines per function and 5 functions per file
- No assigns and declarations in the same line (unless static)
- No more than 5 variables in 1 function
...
Module Name | About | Grade |
---|---|---|
CPP00 | The principles of OOP, static and const modifiers | ✅ 100/100 |
CPP01 | Dynamic allocation, member function pointers and switch statement | ✅ 100/100 |
CPP02 | Operator overloading and Orthodox Canonical Form | ✅ 100/100 |
CPP03 | OOP: Inheritance | ✅ 100/100 |
CPP04 | OOP: Polymorphism, Abstract Classes and Interfaces | ✅ 100/100 |
CPP05 | Exceptions | ✅ 100/100 |
CPP06 | C++ casts | ✅ 100/100 |
CPP07 | Templates | ✅ 100/100 |
CPP08 | Templated STL containers and algorithms | ✅ 100/100 |
CPP09 | STL containers | ✅ 100/100 |
Each module contains several exercises, each one with its own Makefile. To compile the exercises, just run make
inside the exercise folder and an executable will be created. To clean up the folder and remove the executable, run make clean
.
Feel free to ask me any questions through Slack (ncarvalh).