feat(ex01): it works

This commit is contained in:
Khaïs COLIN 2025-05-12 12:03:57 +02:00
parent b9ff91c653
commit 1a167101bb
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
6 changed files with 94 additions and 0 deletions

11
ex01/main.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "Zombie.hpp"
int main(void) {
int n = 10;
Zombie *horde = zombieHorde(n, "Jefferson Barnett");
for (int i = 0; i < n; i++) {
horde[i].announce();
}
delete[] horde;
return 0;
}