Skip to content

Nuno-Jesus/42_cpp_modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP Modules

📒 About

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).

🚨 Disclaimer

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
... 

🔧 Implementation

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

📦 Compilation

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.

📞 Contact me

Feel free to ask me any questions through Slack (ncarvalh).