-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (25 loc) · 1.12 KB
/
main.cpp
File metadata and controls
27 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/06 10:04:03 by zelhajou #+# #+# */
/* Updated: 2024/06/08 10:02:05 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
int main(int argc, char **argv)
{
if (argc != 2)
{
std::cout << "Usage: ./zombie <name>" << std::endl;
return 1;
}
Zombie *zombie = newZombie(argv[1]);
zombie->announce();
randomChump(argv[1]);
delete zombie;
return 0;
}