/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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; }