ex02 created

This commit is contained in:
2026-02-17 10:55:21 +01:00
parent bc4efdf7e5
commit 7f81562db3
10 changed files with 450 additions and 0 deletions

35
ex02/main.cpp Normal file
View File

@@ -0,0 +1,35 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hadi <hadi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/16 22:32:41 by hadi #+# #+# */
/* Updated: 2026/02/17 09:56:07 by hadi ### ########.fr */
/* */
/* ************************************************************************** */
#include "Bureaucrat/Bureaucrat.hpp"
#include "AForm/AForm.hpp"
int main()
{
std::cout << "---- ex01 tests ----" << std::endl;
try {
AForm form("AngelForm", false, 139, 5);
Bureaucrat angel("Angel", 140);
std::cout << form << std::endl;
angel.signForm(form);
std::cout << form << std::endl;
} catch (std::exception &e) {
std::cout << e.what() << std::endl;
}
std::cout << std::endl;
return (0);
}