cpp01...
This commit is contained in:
30
ex01/main.cpp
Normal file
30
ex01/main.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 16:42:21 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 01:48:21 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Zombie/Zombie.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
int i;
|
||||
int N;
|
||||
Zombie *z;
|
||||
|
||||
i = 0;
|
||||
N = 2;
|
||||
z = zombieHorde(N, "");
|
||||
while (i < N)
|
||||
z[i++].announce();
|
||||
|
||||
delete[](z);
|
||||
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user