1
0

🏗️」 wip: Added all files for ex02

This commit is contained in:
2025-03-30 18:07:11 +02:00
parent 2b136d90f4
commit d56e8011de
12 changed files with 405 additions and 0 deletions

51
ex02/main.cpp Normal file
View File

@ -0,0 +1,51 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* 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 */
/* */
/* ************************************************************************** */
#include "Bureaucrat.hpp"
#include "Form.hpp"
#include <iostream>
int main(void) {
Bureaucrat knl("Kanel", 10);
Bureaucrat su("Suki", 1);
knl--;
std::cout << knl << std::endl;
knl++;
std::cout << knl << std::endl;
try {
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
knl++;
} catch (const std::exception &e) {
std::cerr << "Error : " << e.what() << std::endl;
}
Form f("le contrattt", 5, 5);
su.signForm(f);
std::cout << knl << std::endl;
}