-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzombieHorde.cpp
23 lines (20 loc) · 1.04 KB
/
zombieHorde.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* zombieHorde.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamaurai <mamaurai@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/16 12:55:54 by mamaurai #+# #+# */
/* Updated: 2022/03/16 13:02:14 by mamaurai ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
Zombie*
zombieHorde(int n, std::string name)
{
Zombie* ptr = new Zombie[n];
for (int i = 0; i < n; i++)
ptr[i].setName(name);
return (ptr);
}