-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
47 lines (38 loc) · 1.5 KB
/
Copy pathmain.cpp
File metadata and controls
47 lines (38 loc) · 1.5 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dpoveda- <me@izenynn.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/14 15:46:50 by dpoveda- #+# #+# */
/* Updated: 2022/02/14 16:19:17 by dpoveda- ### ########.fr */
/* */
/* ************************************************************************** */
#include "Zombie.hpp"
#include <iostream>
#include <string>
Zombie *newZombie(std::string);
void randomChump(std::string name);
int main() {
// watson the zombie
Zombie *watson = new Zombie("Watson");;
watson->announce();
randomChump("otaku zombie");
delete watson;
std::cout << std::endl;
// mickel jackson con tremenda bachata zombie
Zombie *mickel = newZombie("Mickel");
mickel->announce();
// peppa pig
Zombie *peppa = newZombie("Peppa pig");
peppa->announce();
mickel->announce();
delete mickel;
peppa->announce();
delete peppa;
std::cout << std::endl;
// random chumps
randomChump("vegan zombie");
return 0;
}