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

9
ex01/zombieHorde.cpp Normal file
View file

@ -0,0 +1,9 @@
#include "Zombie.hpp"
Zombie *zombieHorde(int n, std::string name) {
Zombie *horde = new Zombie[n];
for (int i = 0; i < n; i++) {
horde[i].setName(name);
}
return horde;
}