ajout sujets et fini ex01 d01

This commit is contained in:
hugogogo
2022-02-05 17:11:24 +01:00
parent 5e3d23ba8f
commit e6929e8e12
7 changed files with 141 additions and 0 deletions

17
d01/ex01/main.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "Zombie.hpp"
Zombie* zombieHorde( int N, std::string name );
#define z_nb 8
int main(void)
{
Zombie* zombi;
zombi = zombieHorde( z_nb, "rambou" );
for (int i = 0; i < z_nb; i++) {
zombi[i].announce();
}
delete [] zombi;
return (0);
}