blob: 20db57c203e9d5fbb5cd768f6775d39cc55b223c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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"
int main()
{
srand(time(NULL));
std::cout << "Stack horde" << std::endl;
ZombieHorde horde(5);
horde.announce();
std::cout << std::endl << "Heap horde" << std::endl;
ZombieHorde *heap_horde = new ZombieHorde(7);
heap_horde->announce();
delete heap_horde;
}
|