cpp-partie-1/cpp01/ex01/zombieHorde.cpp
2024-02-20 15:35:19 +01:00

23 lines
1.0 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* zombieHorde.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/24 15:05:45 by fgras-ca #+# #+# */
/* Updated: 2023/12/24 15:17:10 by fgras-ca ### ########.fr */
/* */
/* ************************************************************************** */
#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);
}