Files
cpp01/ex01/Zombie/zombieHorde.cpp

29 lines
1.1 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* zombieHorde.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/05 17:04:19 by aortigos #+# #+# */
/* Updated: 2025/09/29 07:07:25 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
Zombie* zombieHorde( int N, std::string name )
{
Zombie *z;
int i;
if (N < 1)
return (NULL);
z = new Zombie[N];
i = 0;
while (i < N)
z[i++].setName(name);
return (z);
}