1
0

」 feat: finished ex02

This commit is contained in:
2025-04-03 14:34:21 +02:00
parent 9e85ca79d9
commit bb8d13b9ed
13 changed files with 238 additions and 22 deletions

View File

@ -6,17 +6,17 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/23 14:01:11 by adjoly #+# #+# */
/* Updated: 2025/03/30 15:13:07 by adjoly ### ########.fr */
/* Updated: 2025/04/03 14:32:57 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "Bureaucrat.hpp"
#include "Form.hpp"
#include "AForm.hpp"
#include "ShrubberyCreationForm.hpp"
#include <iostream>
int main(void) {
Bureaucrat knl("Kanel", 10);
Bureaucrat su("Suki", 1);
knl--;
std::cout << knl << std::endl;
@ -43,9 +43,15 @@ int main(void) {
} catch (const std::exception &e) {
std::cerr << "Error : " << e.what() << std::endl;
}
Form f("le contrattt", 5, 5);
ShrubberyCreationForm s;
su.signForm(f);
try {
s.beSigned(knl);
knl.executeForm(s);
} catch (std::exception &e) {
std::cerr << "Error : " << e.what() << std::endl;
}
std::cout << knl << std::endl;
}