cpp/cpp01/ex00/main.cpp
Alexandre POMMIER 8543b33348 correct cpp00
2022-07-23 11:58:33 +02:00

24 lines
1.1 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/08 16:30:06 by apommier #+# #+# */
/* Updated: 2022/07/22 13:01:54 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
int main()
{
std::cout << "--Zombie on the Heap--" << std::endl;
Zombie *heap = newZombie("Bob");
heap->announce();
delete heap;
std::cout << "--Zombie on the Stack--" << std::endl;
randomChump("John");
return (0);
}