adding the first of cpp06
This commit is contained in:
parent
12c51ae90e
commit
f4bd73f103
6 changed files with 325 additions and 1 deletions
25
cpp06/ex00/includes/ScalarConverter.hpp
Normal file
25
cpp06/ex00/includes/ScalarConverter.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ScalarConverter.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/20 15:50:13 by rparodi #+# #+# */
|
||||
/* Updated: 2025/03/21 15:05:26 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class ScalarConverter {
|
||||
public:
|
||||
ScalarConverter();
|
||||
~ScalarConverter();
|
||||
ScalarConverter(ScalarConverter const ©);
|
||||
ScalarConverter& operator = (ScalarConverter const &assign);
|
||||
static void convert(std::string *input);
|
||||
private:
|
||||
};
|
||||
47
cpp06/ex00/includes/color.hpp
Normal file
47
cpp06/ex00/includes/color.hpp
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* color.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/17 15:27:54 by rparodi #+# #+# */
|
||||
/* Updated: 2025/02/18 16:43:18 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef COLOR_HPP
|
||||
#define COLOR_HPP
|
||||
|
||||
#define RESET "\033[0m"
|
||||
|
||||
#define BLACK "\033[0;30m"
|
||||
#define RED "\033[0;31m"
|
||||
#define GREEN "\033[0;32m"
|
||||
#define YELLOW "\033[0;33m"
|
||||
#define BLUE "\033[0;34m"
|
||||
#define MAGENTA "\033[0;35m"
|
||||
#define CYAN "\033[0;36m"
|
||||
#define WHITE "\033[0;37m"
|
||||
#define GOLD "\033[38;5;220m"
|
||||
#define GREY "\033[38;5;240m"
|
||||
|
||||
#define L_BLACK "\033[0;90m"
|
||||
#define L_RED "\033[0;91m"
|
||||
#define L_GREEN "\033[0;92m"
|
||||
#define L_YELLOW "\033[0;93m"
|
||||
#define L_BLUE "\033[0;94m"
|
||||
#define L_MAGENTA "\033[0;95m"
|
||||
#define L_CYAN "\033[0;96m"
|
||||
#define L_WHITE "\033[0;97m"
|
||||
|
||||
#define B_BLACK "\033[1;30m"
|
||||
#define B_RED "\033[1;31m"
|
||||
#define B_GREEN "\033[1;32m"
|
||||
#define B_YELLOW "\033[1;33m"
|
||||
#define B_BLUE "\033[1;34m"
|
||||
#define B_MAGENTA "\033[1;35m"
|
||||
#define B_CYAN "\033[1;36m"
|
||||
#define B_WHITE "\033[1;37m"
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue