ex03 main like subject main

This commit is contained in:
2025-09-07 19:39:33 +02:00
parent fbca0865d8
commit b5430df26b

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/06 02:18:16 by aortigos #+# #+# */
/* Updated: 2025/09/06 14:29:53 by aortigos ### ########.fr */
/* Updated: 2025/09/07 19:39:06 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -26,12 +26,10 @@ int main()
{
Weapon club = Weapon("crude spiked club");
HumanB jim("Jim");
jim.attack();
jim.setWeapon(club);
jim.attack();
club.setType("some other type of club");
jim.attack();
}
return (0);
}
return 0;
}