You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

47 lines
1.7 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/24 13:16:27 by narnaud #+# #+# */
/* Updated: 2022/06/27 16:34:59 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "ShrubberyCreationForm.hpp"
#include "RobotomyRequestForm.hpp"
#include "PresidentialPardonForm.hpp"
#include "Bureaucrat.hpp"
#include "Intern.hpp"
int main(void)
{
Bureaucrat first("first", 1);
Bureaucrat mid("midle", 75);
Bureaucrat last("last", 150);
Intern rookie;
Form *form;
form = rookie.makeForm("shrubbery creation", "house");
last.signForm(*form);
first.signForm(*form);
last.executeForm(*form);
first.executeForm(*form);
delete form;
form = rookie.makeForm("robotomy request", "bidule");
last.signForm(*form);
first.signForm(*form);
last.executeForm(*form);
first.executeForm(*form);
delete form;
form = rookie.makeForm("president pardon", "gerard");
last.signForm(*form);
first.signForm(*form);
last.executeForm(*form);
first.executeForm(*form);
delete form;
}