Adding the start of the ex01
This commit is contained in:
parent
51f2946231
commit
9a78894e9a
6 changed files with 234 additions and 0 deletions
26
cpp03/ex01/main.cpp
Normal file
26
cpp03/ex01/main.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/10 15:50:07 by rparodi #+# #+# */
|
||||
/* Updated: 2025/01/14 22:04:48 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ClapTrap.hpp"
|
||||
#include <iostream>
|
||||
|
||||
int main(void) {
|
||||
std::cout << "[Broadcast]\n\tIn the Red corner the first cat of the 42 school !" << std::endl;
|
||||
ClapTrap test("Norminet");
|
||||
test.attack("Moulinette");
|
||||
test.takeDamage(42);
|
||||
test.beRepaired(42);
|
||||
std::cout << "\n\n[Broadcast]\n\tIn the Blue corner the actual cat of the 42 school !" << std::endl;
|
||||
ClapTrap test2("Moulinette");
|
||||
test2.beRepaired(32);
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue