35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2026/02/21 12:11:32 by aortigos #+# #+# */
|
|
/* Updated: 2026/02/21 12:11:32 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "Bureaucrat/Bureaucrat.hpp"
|
|
#include "Form/Form.hpp"
|
|
|
|
int main()
|
|
{
|
|
std::cout << "---- ex01 tests ----" << std::endl;
|
|
|
|
try {
|
|
Form form("AngelForm", 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);
|
|
} |