ajout sujets et fini ex01 d01
This commit is contained in:
17
d01/ex01/main.cpp
Normal file
17
d01/ex01/main.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user