From 0f3240844dbd5a874e1565a988ef355ededab6a5 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 13 Apr 2020 10:33:05 +0200 Subject: Fixing cpp01 --- cpp01/ex02/main.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'cpp01/ex02/main.cpp') 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 +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/04/13 09:47:21 by charles #+# #+# */ +/* Updated: 2020/04/13 09:48:29 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #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; } -- cgit