cpp01/ex01/zombieHorde.cpp

10 lines
185 B
C++
Raw Permalink Normal View History

2025-05-12 12:03:57 +02:00
#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;
}