42's cpp modules.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.4 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pohl </var/spool/mail/pohl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/10 06:43:49 by pohl #+# #+# */
/* Updated: 2021/07/19 18:09:28 by paulohl ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
#include "Zombie.hpp"
int main( void )
{
std::cout << "Creating the first Zombie, Robert, \"manually\"" << std::endl;
{
Zombie robert("Robert");
robert.announce();
}
std::cout << "Creating the second Zombie, Georges, using the function"
" newZombie"<< std::endl;
{
Zombie *georges = newZombie("Georges");
georges->announce();
delete georges;
}
{
std::cout << "Creating the third Zombie, Mark, using the function"
" randomChump"<< std::endl;
randomChump("Mark");
}
}