This repository contains solutions to various C++ programming challenges from the 42 School curriculum. Each module is designed to deepen students' understanding of different programming concepts and techniques.
A class that simulates a bureaucrat with specific attributes and behaviors.
Key objectives included:
- Implementing a
Bureaucrat
class with attributes such as name and grade. - Demonstrating the use of constructors, destructors, and member functions.
- Managing exceptions for invalid grades.
A form class that can be signed by bureaucrats.
Key objectives included:
- Implementing a
Form
class with attributes such as name, sign grade, and execute grade. - Creating methods to sign the form and check if it can be executed.
- Demonstrating the interaction between the
Bureaucrat
andForm
classes.
Specific types of forms and handling their execution.
Key objectives included:
- Implementing derived classes from the
Form
class for specific form types. - Overriding methods to handle the execution of specific forms.
- Demonstrating polymorphism and the use of derived classes.
A central office that manages multiple forms and bureaucrats.
Key objectives included:
- Implementing a central office class to manage forms and bureaucrats.
- Demonstrating the interaction between multiple forms and bureaucrats.
- Ensuring proper resource management and state handling.
To install the project, follow these steps:
- Clone the repository:
git clone git@github.com:jakobsitory/05_CPP05_42CC.git
- Navigate to the project directory:
cd 05_CPP05_42CC
- Navigate to the exercise directory :
cd ex00
,cd ex01
... - Build the project:
make
Follow the on-screen instructions to test the programs.
./Bureaucrat
./Forms2Fill
./Form28B
./Form28B