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.
 
 

38 lines
1.6 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/24 13:16:27 by narnaud #+# #+# */
/* Updated: 2022/06/27 14:58:53 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
#include "Bureaucrat.hpp"
#include "PresidentialPardonForm.hpp"
#include "RobotomyRequestForm.hpp"
#include "ShrubberyCreationForm.hpp"
int main(void) {
Bureaucrat first("first", 1);
Bureaucrat mid("midle", 75);
Bureaucrat last("last", 150);
ShrubberyCreationForm houseForm("House");
PresidentialPardonForm gerardForm("Gerard");
RobotomyRequestForm biduleForm("Bidule");
last.signForm(houseForm);
last.signForm(gerardForm);
last.signForm(biduleForm);
first.signForm(houseForm);
first.signForm(gerardForm);
first.signForm(biduleForm);
last.executeForm(houseForm);
last.executeForm(gerardForm);
last.executeForm(biduleForm);
first.executeForm(houseForm);
first.executeForm(gerardForm);
first.executeForm(biduleForm);
}