Applied norminette syntax for visual enjoyment
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 16:46:34 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 01:23:34 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:48:22 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 16:44:08 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 01:22:58 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:49:46 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 17:04:19 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 01:19:33 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:48:16 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
Zombie* newZombie( std::string name )
|
||||
{
|
||||
Zombie *z;
|
||||
Zombie *z;
|
||||
|
||||
z = new Zombie(name);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 17:04:38 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/07 19:10:34 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:48:12 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
void randomChump( std::string name )
|
||||
{
|
||||
Zombie *z;
|
||||
Zombie *z;
|
||||
|
||||
z = new Zombie(name);
|
||||
z->announce();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/05 16:42:21 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/07 19:08:01 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:50:00 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
Zombie *z;
|
||||
Zombie *z;
|
||||
|
||||
z = newZombie("Angel");
|
||||
z->announce();
|
||||
|
||||
@@ -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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -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,9 +14,10 @@
|
||||
|
||||
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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/06 01:58:01 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/08 14:15:19 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:49:52 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
std::string str = "Hola 42!";
|
||||
std::string *ptr = &str;
|
||||
std::string &ref = str;
|
||||
std::string str = "Hola 42!";
|
||||
std::string *ptr = &str;
|
||||
std::string &ref = str;
|
||||
|
||||
// Imprimimos las direcciones de memoria
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# include <iostream>
|
||||
# include "../Weapon/Weapon.hpp"
|
||||
|
||||
class HumanA
|
||||
class HumanA
|
||||
{
|
||||
private:
|
||||
std::string name;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# include <iostream>
|
||||
# include "../Weapon/Weapon.hpp"
|
||||
|
||||
class HumanB
|
||||
class HumanB
|
||||
{
|
||||
private:
|
||||
std::string name;
|
||||
|
||||
@@ -19,8 +19,7 @@ const std::string& Weapon::getType() const
|
||||
return (this->type);
|
||||
}
|
||||
|
||||
void Weapon::setType(const std::string &str)
|
||||
void Weapon::setType(const std::string &str)
|
||||
{
|
||||
this->type = str;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
# include <iostream>
|
||||
|
||||
class Weapon
|
||||
class Weapon
|
||||
{
|
||||
private:
|
||||
std::string type;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/06 02:18:16 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/07 19:39:06 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:50:41 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "HumanA/HumanA.hpp"
|
||||
#include "HumanB/HumanB.hpp"
|
||||
|
||||
int main()
|
||||
int main()
|
||||
{
|
||||
{
|
||||
Weapon club = Weapon("crude spiked club");
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/06 14:44:18 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/08 14:23:48 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:50:49 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
# include <iostream>
|
||||
|
||||
class Harl
|
||||
class Harl
|
||||
{
|
||||
private:
|
||||
void debug( void );
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/06 15:23:33 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 15:48:52 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:50:59 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Harl/Harl.hpp"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
Harl h;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
# include <iostream>
|
||||
|
||||
class Harl
|
||||
class Harl
|
||||
{
|
||||
private:
|
||||
void debug( void );
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/06 15:23:33 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 15:48:52 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/09/14 13:51:13 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Harl/Harl.hpp"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
Harl h;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user