ex02 finished

This commit is contained in:
2026-02-18 00:16:54 +01:00
parent c233d14af7
commit f96fb516ff
10 changed files with 314 additions and 10 deletions

View File

@@ -6,20 +6,27 @@
/* By: hadi <hadi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/16 22:32:41 by hadi #+# #+# */
/* Updated: 2026/02/17 17:53:10 by hadi ### ########.fr */
/* Updated: 2026/02/18 00:15:46 by hadi ### ########.fr */
/* */
/* ************************************************************************** */
#include "Bureaucrat/Bureaucrat.hpp"
#include "AForm/AForm.hpp"
#include "ShrubberyCreationForm/ShrubberyCreationForm.hpp"
#include "RobotomyRequestForm/RobotomyRequestForm.hpp"
#include "PresidentialPardonForm/PresidentialPardonForm.hpp"
int main()
{
// Inicilizamos semilla de rand, necesario para
// RobotomyRequestForm
srand(time(NULL));
std::cout << "---- ex01 tests ----" << std::endl;
ShrubberyCreationForm form("home");
RobotomyRequestForm form("home");
try {
Bureaucrat angel("Angel", 137);
Bureaucrat angel("Angel", 1);
angel.executeForm(form);
angel.signForm(form);