Applied norminette syntax for visual enjoyment

This commit is contained in:
Angel Ortigosa Perez
2025-09-14 13:52:18 +02:00
parent a56df94b5d
commit 661e81b552
24 changed files with 48 additions and 48 deletions

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/05 16:46:34 by aortigos #+# #+# */
/* Updated: 2025/09/06 01:36:29 by aortigos ### ########.fr */
/* Updated: 2025/09/14 13:48:42 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -30,4 +30,4 @@ void Zombie::setName(std::string str)
void Zombie::announce( void )
{
std::cout << this->name << ": BraiiiiiiinnnzzzZ..." << std::endl;
}
}

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/05 16:44:08 by aortigos #+# #+# */
/* Updated: 2025/09/06 01:36:21 by aortigos ### ########.fr */
/* Updated: 2025/09/14 13:49:47 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -30,4 +30,4 @@ class Zombie
Zombie* zombieHorde( int N, std::string name );
#endif
#endif

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/05 17:04:19 by aortigos #+# #+# */
/* Updated: 2025/09/06 01:47:44 by aortigos ### ########.fr */
/* Updated: 2025/09/14 13:49:02 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,12 +14,13 @@
Zombie* zombieHorde( int N, std::string name )
{
Zombie *z = new Zombie[N];
Zombie *z;
int i;
z = new Zombie[N];
i = 0;
while (i < N)
z[i++].setName(name);
return (z);
}
}

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/05 16:42:21 by aortigos #+# #+# */
/* Updated: 2025/09/08 13:35:53 by aortigos ### ########.fr */
/* Updated: 2025/09/14 13:49:56 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,7 +16,7 @@ int main()
{
int i;
int N;
Zombie *z;
Zombie *z;
i = 0;
N = 3;
@@ -27,4 +27,4 @@ int main()
delete[](z);
return (0);
}
}