Beispiel #1
0
int		main(void)
{
	ZombieEvent event = ZombieEvent();
	Zombie* michael = event.newZombie("michael");
	michael->Announce();
	delete michael;
	event.randomChump();
	Zombie julie = Zombie("julie", "runner");
	julie.Announce();
	return (0);
}
Beispiel #2
0
int		main(void)
{
	srand(time(0));
	ZombieEvent		eve = ZombieEvent();

	Zombie			*z1 = eve.randomChump();
	eve.setZombieType("SWAAAAAG");
	Zombie			*z2 = eve.randomChump();
	Zombie			*z3 = eve.randomChump();
	eve.setZombieType("Bobo Parisien");
	Zombie			*z4 = eve.randomChump();

	z1->announce();
	z2->announce();
	z4->announce();
	z3->announce();
	delete z1;
	delete z2;
	delete z3;
	delete z4;
	return (0);
}