1
0
This repository has been archived on 2024-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
CPP_Module_01/ex01/zombieHorde.cpp

27 lines
1.1 KiB
C++
Raw Permalink Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* zombieHorde.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 17:48:42 by adjoly #+# #+# */
/* Updated: 2024/11/04 18:43:09 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
Zombie *zombieHorde(int n, std::string name) {
Zombie *horde;
uint8_t i;
horde = new Zombie[n]();
i = 0;
while (i < n) {
horde[i].setName(name);
i++;
}
return (horde);
}