1
0

」 feat: finished ex03

This commit is contained in:
2025-04-03 16:07:05 +02:00
parent bb8d13b9ed
commit bd578ea11e
17 changed files with 811 additions and 5 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/03 09:19:30 by adjoly #+# #+# */
/* Updated: 2025/04/03 14:17:12 by adjoly ### ########.fr */
/* Updated: 2025/04/03 16:02:35 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -46,8 +46,8 @@ void RobotomyRequestForm::_exec(const Bureaucrat &b) const {
std::srand(time(0));
if (std::rand() % 2) {
std::cout << b.getName() << " has been robotomized successfully ! :D" << std::endl;
std::cout << b.getName() << " has been robotomised successfully ! :D" << std::endl;
} else {
std::cout << b.getName() << " robotomization failed 😿" << std::endl;
std::cout << b.getName() << " robotomisation failed 😿" << std::endl;
}
}

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/23 14:01:11 by adjoly #+# #+# */
/* Updated: 2025/04/03 14:32:57 by adjoly ### ########.fr */
/* Updated: 2025/04/03 15:49:50 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -48,8 +48,8 @@ int main(void) {
try {
s.beSigned(knl);
knl.executeForm(s);
} catch (std::exception &e) {
knl.executeForm(s);
std::cerr << "Error : " << e.what() << std::endl;
}