/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* zombieHorde.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/14 08:17:02 by narnaud #+# #+# */ /* Updated: 2022/07/18 08:20:03 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "Zombie.hpp" Zombie *zombieHorde(int N, string name) { Zombie *ret = new Zombie[N]; int n = 0; while (n < N) { std::stringstream ss; string s; ss << name << n; ss >> s; ret[n].setName(s); n++; } return (ret); }