diff options
Diffstat (limited to 'cpp01/ex03/main.cpp')
| -rw-r--r-- | cpp01/ex03/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp01/ex03/main.cpp b/cpp01/ex03/main.cpp new file mode 100644 index 0000000..896b05e --- /dev/null +++ b/cpp01/ex03/main.cpp @@ -0,0 +1,15 @@ +#include <cstdlib> +#include "Zombie.hpp" +#include "ZombieHorde.hpp" + +int main() +{ + srand(time(NULL)); + + ZombieHorde horde = ZombieHorde(10); + horde.announce(); + + ZombieHorde *heap_horde = new ZombieHorde(10); + heap_horde->announce(); + delete heap_horde; +} |
