aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex02/main.cpp
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-13 10:33:05 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-13 10:33:05 +0200
commit0f3240844dbd5a874e1565a988ef355ededab6a5 (patch)
treeefc1a1307863d173be17a12fbab6b84fe7d00960 /cpp01/ex02/main.cpp
parent629d52b1262879a346e9ca17567a8f483c60ba0a (diff)
downloadpiscine_cpp-0f3240844dbd5a874e1565a988ef355ededab6a5.tar.gz
piscine_cpp-0f3240844dbd5a874e1565a988ef355ededab6a5.tar.bz2
piscine_cpp-0f3240844dbd5a874e1565a988ef355ededab6a5.zip
Fixing cpp01
Diffstat (limited to 'cpp01/ex02/main.cpp')
-rw-r--r--cpp01/ex02/main.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/cpp01/ex02/main.cpp b/cpp01/ex02/main.cpp
index 1df20d2..291fddb 100644
--- a/cpp01/ex02/main.cpp
+++ b/cpp01/ex02/main.cpp
@@ -1,11 +1,24 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* main.cpp :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/04/13 09:47:21 by charles #+# #+# */
+/* Updated: 2020/04/13 09:48:29 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
#include <cstdlib>
#include "Zombie.hpp"
#include "ZombieEvent.hpp"
int main()
{
- Zombie *z;
+ Zombie* z;
ZombieEvent zevent;
+ Zombie zStack("onTheStack", "IdontLikeHeap");
srand(time(NULL));
zevent.setZombieType("standard");
@@ -16,5 +29,6 @@ int main()
z = zevent.randomChump();
delete z;
}
+
return 0;
}