diff options
| author | Dominik Kaiser | 2025-02-10 13:00:31 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-10 13:00:31 +0100 |
| commit | eaf8c2c6840386a9610c165447357cdd98a77d26 (patch) | |
| tree | c13ec56912fadcfc4e81e551fe3bbbe966d024aa /ex03/main.cpp | |
| parent | 57e945f03e37e741a527f07fdcd84307733635e7 (diff) | |
| download | cpp01-eaf8c2c6840386a9610c165447357cdd98a77d26.tar.gz cpp01-eaf8c2c6840386a9610c165447357cdd98a77d26.zip | |
Implement HumanB class
Diffstat (limited to 'ex03/main.cpp')
| -rw-r--r-- | ex03/main.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/ex03/main.cpp b/ex03/main.cpp index e53d3a0..de69c15 100644 --- a/ex03/main.cpp +++ b/ex03/main.cpp @@ -6,12 +6,13 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/10 11:58:15 by dkaiser #+# #+# */ -/* Updated: 2025/02/10 12:48:13 by dkaiser ### ########.fr */ +/* Updated: 2025/02/10 12:58:13 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ #include "Weapon.hpp" #include "HumanA.hpp" +#include "HumanB.hpp" int main() { @@ -22,13 +23,13 @@ int main() club.setType("some other type of club"); bob.attack(); } - // { - // Weapon club = Weapon("crude spiked club"); - // HumanB jim("Jim"); - // jim.setWeapon(club); - // jim.attack(); - // club.setType("some other type of club"); - // jim.attack(); - // } - // return 0; + { + Weapon club = Weapon("crude spiked club"); + HumanB jim("Jim"); + jim.setWeapon(club); + jim.attack(); + club.setType("some other type of club"); + jim.attack(); + } + return 0; } |
