randomChump changed to stack
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/09/05 17:04:38 by aortigos #+# #+# */
|
/* Created: 2025/09/05 17:04:38 by aortigos #+# #+# */
|
||||||
/* Updated: 2025/09/14 13:48:12 by aortigos ### ########.fr */
|
/* Updated: 2025/09/29 07:03:22 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -14,10 +14,7 @@
|
|||||||
|
|
||||||
void randomChump( std::string name )
|
void randomChump( std::string name )
|
||||||
{
|
{
|
||||||
Zombie *z;
|
Zombie z(name);
|
||||||
|
|
||||||
z = new Zombie(name);
|
z.announce();
|
||||||
z->announce();
|
|
||||||
|
|
||||||
delete (z);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user