示例#1
0
int main(void)
{
	std::srand(time(NULL));
	ZombieHorde *bob = new ZombieHorde(2);
	bob->announce();
	ZombieHorde *bobby = new ZombieHorde(3);
	bobby->announce();
	delete bob;
	ZombieHorde *bobo = new ZombieHorde(6);
	bobo->announce();
	delete bobo;
	delete bobby;
	return 0;
}
示例#2
0
int				main(void)
{
	ZombieHorde *zh = new ZombieHorde(7);
    zh->announce();
	delete zh;

	return (0);
}
示例#3
0
int	main(void)
{
	ZombieHorde horde = ZombieHorde(8);
	horde.announce();
	return(0);
}