diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-13 10:33:05 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-13 10:33:05 +0200 |
| commit | 0f3240844dbd5a874e1565a988ef355ededab6a5 (patch) | |
| tree | efc1a1307863d173be17a12fbab6b84fe7d00960 /cpp01/ex02/main.cpp | |
| parent | 629d52b1262879a346e9ca17567a8f483c60ba0a (diff) | |
| download | piscine_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.cpp | 16 |
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; } |
