cpp01...
This commit is contained in:
25
ex01/Zombie/zombieHorde.cpp
Normal file
25
ex01/Zombie/zombieHorde.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* zombieHorde.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 17:04:19 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 01:47:44 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Zombie.hpp"
|
||||
|
||||
Zombie* zombieHorde( int N, std::string name )
|
||||
{
|
||||
Zombie *z = new Zombie[N];
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
while (i < N)
|
||||
z[i++].setName(name);
|
||||
|
||||
return (z);
|
||||
}
|
||||
Reference in New Issue
Block a user