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.
40 lines
1.6 KiB
40 lines
1.6 KiB
3 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* 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 "ShrubberyCreationForm.hpp"
|
||
|
#include "RobotomyRequestForm.hpp"
|
||
|
#include "PresidentialPardonForm.hpp"
|
||
|
#include "Bureaucrat.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);
|
||
|
}
|