aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex03/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp01/ex03/main.cpp')
-rw-r--r--cpp01/ex03/main.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/cpp01/ex03/main.cpp b/cpp01/ex03/main.cpp
index 896b05e..20db57c 100644
--- a/cpp01/ex03/main.cpp
+++ b/cpp01/ex03/main.cpp
@@ -1,4 +1,17 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* main.cpp :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/04/13 09:56:14 by charles #+# #+# */
+/* Updated: 2020/04/13 09:58:56 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
#include <cstdlib>
+#include <iostream>
#include "Zombie.hpp"
#include "ZombieHorde.hpp"
@@ -6,10 +19,12 @@ int main()
{
srand(time(NULL));
- ZombieHorde horde = ZombieHorde(10);
+ std::cout << "Stack horde" << std::endl;
+ ZombieHorde horde(5);
horde.announce();
- ZombieHorde *heap_horde = new ZombieHorde(10);
+ std::cout << std::endl << "Heap horde" << std::endl;
+ ZombieHorde *heap_horde = new ZombieHorde(7);
heap_horde->announce();
delete heap_horde;
}